AWS CloudFormation Flashcards
I have a cloud formation templates with both RDS and S3, I want to delete the template but have the data in booth S3 and RDS retained, what options do I have?
Set the deletion policy to retain for S3 and set the deletion policy to snapshot for RDS.
What is a cloud formation stack?
It is an entity that is used to create one or more resources inside AWS.
What are cloud formation events?
They are part of a stack and are the different events that happen during stack creation.
I wnat to receive notifications for a stack, how can I architect this?
You can configure a stack to send a notification to SNS.
What does a stack consist of?
- Stack events
- Resources
- Outputs
- Parameters
- Templates
What is a logical ID?
This is the id given by the template to the resource, AWS will create a physical resource OD when creating a resource.
When you update a resource, either by parameter or template configuration, what are the three update actions that can happen to a resource?
- Update with no interruption
- Update with some interruption
- Replacement
What is the changeset?
A changeset is used when updating n a stack, it enables you to see that is been changed form the old stack resource to the new, it also shows you how each resource is been changed.
When I am creating a stack, what permissions are used?
The stack will use the permissions of the users creating the stack. But you can create an AWS IAM service role
I need to be able to allow a junior to perform stack updates, I do not what to give the junior admin permissions, how can I achieve this?
You can use a stack role to give the stack admin, the admin service rile will be used by the stack to create updated resources, while allowing a junior just enough permissions to access the stack to kick off the update.
What is Stackset?
A Stackset enables you to create stacks in the multipal region in multiple accounts.
I wnat to use an automated method to enable CloudTrailor AWSConfig in multiple accounts in my organization?
You can create a Stackset and use it to create a stack in a separate account and region.
What are a Stackset admin and target account?
The admin account is the account where you are admin the Stackset and the target account is where th estate will be created.
If I have a large RTO and I wnat to implement a DR where my infrastructure is recreated in a new region, what are my options?
You could use cloud formation to restore in case of disaster. This could take the form of, a backup and restore, pilot light or warm standby.
What is a custom resource?
It is a block in a stack template that reaches out to an external resource (Lambda, SNS) to have something done, after which the external resource calls back.