Automation Flashcards
How do you configured AWS CodePipeline with AWS OpsWorks?
Step 1: Create a stack, layer, and an instance in AWS OpsWorks Stacks
Step 2: Upload app code to an Amazon S3 bucket (can be zip)
Step 3: Add your app to AWS OpsWorks Stacks
Step 4: Create a pipeline in CodePipeline (add opsworks to deploy stage)
Step 5: Verifying the app deployment in AWS OpsWorks Stacks
Step 6 (Optional): Update the app code to see CodePipeline redeploy your app automatically
Step 7 (Optional): Clean up resources
Where can you use intrinsic functions in CFN?
You can use intrinsic functions only in specific parts of a template. Currently, you can use intrinsic functions in resource properties, outputs, metadata attributes, and update policy attributes. You can also use intrinsic functions to conditionally create stack resources.
What are intrinsic functions in CFN?
Built-in functions that help you manage your stacks. Use intrinsic functions in your templates to assign values to properties that are not available until runtime.
Examples: Fn::Cidr Fn::GetAtt Fn::Join Condition Functions Ref ....
What are the OpsWorks Stacks Lifecycle Events?
- Setup
- Configure
- Deploy
- Undeploy
- Shutdown
OpsWorks only responds to the last event to avoid unnecessary processing. Unprocessed events are labeled “superseded.”
What happens when you attach a load balancer to a layer in an OpsWorks stack?
- Deregisters any currently registered instances.
- Automatically registers the layer’s instances when they come online and deregisters instances when they go offline, including load-based and time-based instances.
- Automatically starts routing requests to registered instances in their Availability Zones.