What is CloudFormation?
CloudFormation is perfect for creating immutable architecture.
When you create resources using CloudFormation, you can easily
pick that template up and run it anywhere you want.
What is Elastic Beanstalk?
The Amazon PaaS tool.
What Is Systems Manager?
Systems Manager is a suite of tools designed to let you view, control, and
automate both your AWS architecture and on-premises resources.
Features of Systems Manager
How are AWS CloudFormation template parameters used?
Parameters section of the template.What are AWS CloudFormation pseudo parameters and how are they used?
Parameters section.What are the purposes of the AWS CloudFormation intrinsic functions !Ref and !GetAtt?
What AWS CloudFormation intrinsic function is used for selecting elements from a list?
SelectedElement:
Description: “Select the second element from the list”
Value: !Fn::Select [1, [“Element1”, “Element2”, “Element3”]]
What AWS CloudFormation intrinsic function is used for retrieving availability zones from a region?
AvailabilityZones:
Description: “List of availability zones in the us-east-1 region”
Value: !Fn::GetAZs: us-east-1
What AWS CloudFormation intrinsic functions are used for joining and splitting strings in a template?
Examples:
```yaml
JoinedString:
Description: “Concatenate values into a comma-separated string”
Value: !Fn::Join [”,”, [“Value1”, “Value2”, “Value3”]]
SplitString:
Description: “Split a string into a list using a hyphen as the delimiter”
Value: !Fn::Split [”-“, “123-456-789”]
What AWS CloudFormation intrinsic functions are used for encoding data in base64 and string interpolation?
What AWS CloudFormation feature allows you to create a mapping of keys to corresponding values within a template?
What AWS CloudFormation section allows you to define values to be shown or exported after the stack creation or update?
The optional Outputs section declares output values that you can import into other stacks (to create cross-stack references), return in response (to describe stack calls), or view on the AWS CloudFormation console. For example, you can output the S3 bucket name for a stack to make the bucket easier to find.
What are public parameters in AWS Systems Manager Parameter Store, and how can they be shared across accounts and regions?
For more details, refer to: Public Parameters in Systems Manager
In AWS CloudFormation, what feature allows you to control whether resources are created or how they are configured based on certain conditions?
In CloudFormation what is the DependsOn attribute?
With the DependsOn attribute, you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute.
What AWS CloudFormation tool is used to signal the successful completion of an Amazon EC2 instance or an Auto Scaling group during stack creation or update?
cfn-signal is a command-line tool used in conjunction with AWS CloudFormation to signal the successful completion of a specific resource, typically an Amazon EC2 instance or an Auto Scaling group.cfn-signal command is typically included as the last step in user data scripts to avoid signaling before the resource is fully configured.What AWS CloudFormation attribute is used to define conditions for CloudFormation to wait before considering a resource as successfully created during stack creation?
CreationPolicy is an AWS CloudFormation attribute used to specify conditions for CloudFormation to wait before signaling success for a particular resource during stack creation.How can AWS CloudFormation WaitCondition be employed to wait for the completion of an external resource’s creation and use data from that resource?
(For Amazon EC2 and Auto Scaling resources, AWS recommends that you use a CreationPolicy attribute instead of wait conditions. Add a CreationPolicy attribute to those resources, and use the cfn-signal helper script to signal when an instance creation process has completed successfully.)
When working with AWS CloudFormation, what are the key differences between Nested Stacks and Cross-Stack References, and when would you choose one over the other?
Choosing Between Them:
- Nested Stacks: Use when focusing on modular templates and reusability within a single stack.
- Cross-Stack References: Use when separate stacks need to share specific outputs, promoting independence and maintainability.
What are the key differences in how resources from different stacks can be accessed in Nested Stacks versus Cross-Stack References in AWS CloudFormation, including the intrinsic functions used?
Fn::ImportValue function is not required.Fn::Export and Fn::ImportValue functions, respectively.Considerations:
- Nested Stacks: Implicit access simplifies usage but may limit control over individual resource outputs.
- Cross-Stack References: Explicit access provides more control but requires careful management of exports and imports to avoid circular dependencies.
What are CloudFormation StackSets?
What is DeletionPolicy in CloudFormation?
With the DeletionPolicy attribute you can preserve or (in some cases, not supported for EC2) backup a resource when its stack is deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default.
What are Stack roles in CloudFormation?