Automation Flashcards

1
Q

How do you configured AWS CodePipeline with AWS OpsWorks?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where can you use intrinsic functions in CFN?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are intrinsic functions in CFN?

A

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
....
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the OpsWorks Stacks Lifecycle Events?

A
  1. Setup
  2. Configure
  3. Deploy
  4. Undeploy
  5. Shutdown

OpsWorks only responds to the last event to avoid unnecessary processing. Unprocessed events are labeled “superseded.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens when you attach a load balancer to a layer in an OpsWorks stack?

A
  1. Deregisters any currently registered instances.
  2. Automatically registers the layer’s instances when they come online and deregisters instances when they go offline, including load-based and time-based instances.
  3. Automatically starts routing requests to registered instances in their Availability Zones.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly