Question : fn:GetAtt is used on a CloudFormation template to: 1. Conditionally create stack resources 2. Returns the value corresponding to keys into a two-level map declared in the mappings section 3. Access Mostly Uused Products by 50000+ Subscribers 4. Return the value of an attribute from a resource on the template
Explanation: fn:GetAtt is an intrinsic function. Intrinsic functions pass are used to grab data that is only available at stack runtime. Parameters
logicalNameOfResource The logical name of the resource that contains the attribute you want.
attributeName The name of the resource-specific attribute whose value you want. See the resource's reference page for details about the attributes available for that resource type.
Return Value
The attribute value.
Example
This example returns a string containing the DNS name of the LoadBalancer with the logical name MyLB.
"Fn::GetAtt" : [ "MyLB" , "DNSName" ]
Question : Of the available sections on a CloudFormation template (Template Description Declaration, Template Format Version Declaration, Parameters, Resources, Mappings, Outputs), which is the only one required for a CloudFormation template to be accepted? 1. Mappings 2. Template Declaration 3. Access Mostly Uused Products by 50000+ Subscribers 4. Parameters
Correct Answer : Get Lastest Questions and Answer : Mappings enable you to specify conditional parameter values in your template. When used with the intrinsic function Fn::FindInMap, it works like a Case statement or lookup table.
In the optional Mappings section, you define one or more mappings. Each mapping has a logical name unique within the template, and defines one or more key-attribute pairs. Each attribute must be a literal string or list of literal strings. You cannot base a mapping on a parameter, pseudo parameter, or intrinsic function. Along with declaring as many conditional mapping keys as you need, you can declare which mapping key is the default. Templates : You describe your AWS infrastructure requirements in a template. A template is a text file whose format complies with the JSON standard. Because they are just text files, you can edit and manage them in your source control system with the rest of your source code. For more information about the JSON format, see http://www.json.org.
In the template, you can declare several main objects: the template's format version, its description, and the parameters, mappings, conditions, resources, and outputs you need to create your stack. The format version, descriptions, parameters, mappings and outputs are optional. You only need to declare one resource. In the Resources sections of a template, you declare the AWS resources that you want AWS CloudFormation to manage, such as an Amazon EC2 instance or an Amazon S3 bucket. All templates must declare a Resources section with at least one resource. You must declare each resource separately; however, you can specify multiple resources of the same type.
Each resource declaration includes three parts: A logical name that is unique within the template A resource type Properties for that resource
You use the logical name to reference the resource in other parts of the template. For example, if you want to map an Amazon Elastic Block Store to an Amazon EC2 instance, you reference the logical IDs of both the block stores and the instance to specify the mapping. Logical names must be alphanumeric (A-Za-z0-9). Parameters : AWS CloudFormation parameters are values that you define in the template Parameters section. A parameter can have a default value. The default value is overridden if you specify a value for the parameter as part of the aws cloudformation create-stack --parameters option. Parameter values you override at runtime are returned as part of the aws cloudformation describe-stacks command, unless you suppress that in the parameter declaration by including the NoEcho property with a value of true. If you provide the NoEcho property, the parameter value is displayed as asterisks (*****). (Parameter values you do not override are not displayed.)
A parameter can be declared as one of following types: String, Number, or CommaDelimitedList. For a parameter that has a String or Number type, you can define constraints that AWS CloudFormation uses to validate the value of the parameter. For the String type, you can define the following constraints: MinLength, MaxLength, Default, AllowedValues, and AllowedPattern. For the Number type, you can define the following constraints: MinValue, MaxValue, Default, and AllowedValues. A number can be an integer or a float value. For more information about parameter constraints, see Parameters Declaration. Note that all parameter values are specified as strings in the template JSON. This means Number parameter values must also be surrounded by quotes. For example, the Default value for MyNumber specifies a number and it is surrounded by quotes.
Explanation: Common API name calls are required for the AWS Certified Developer Associate Level exam. The calls and what they do are listed inside of the downloadable study guide inside the course module.
ListStackResources : Returns descriptions of all resources of the specified stack. For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted. Request Parameters : For information about the common parameters that all actions use, see Common Parameters. NextToken : String that identifies the start of the next list of stack resource summaries, if there is one. Default: There is no default value. Type: String Length constraints: Minimum length of 1. Maximum length of 1024. Required: No StackName : The name or the unique identifier associated with the stack, which are not always interchangeable: Running stacks: You can specify either the stack's name or its unique stack ID. Deleted stacks: You must specify the unique stack ID. Default: There is no default value. Type: String Required: Yes Response Elements The following elements are returned in a structure named ListStackResourcesResult. NextToken String that identifies the start of the next list of stack resources, if there is one. Type: String StackResourceSummaries A list of StackResourceSummary structures. Type: StackResourceSummary list Examples Sample Request https://cloudformation.us-east-1.amazonaws.com/ ?Action=ListStackResources &StackName=MyStack &Version=2010-05-15 &SignatureVersion=2 &Timestamp=2011-07-08T22%3A26%3A28.000Z &AWSAccessKeyId=[AWS Access KeyID] &Signature=[Signature]