CLI, SDK & IAM Flashcards
How do you provide an EC2 instance access to CLI or another service?
Assign an IAM role.
When testing permissions in CLI, what possible responses could you get using dry-run?
- UnAuthorizedOperation
- DryRunOperation
How do you decode an error message in CLI?
Run the decode-authorization-message command:
“aws sts decode-authorization-message –encoded-message “
What API Retry mechanism is included in the AWS SDK?
Exponential Backoff
What are the 2 possible Beanstalk Deployment Modes?
- Single Instance
- High Availability with Load Balancer
What Deployment Options are available for updates in Beanstalk ?
- All at Once
- Rolling
- Rolling with Additional Batches
- Immutable
Describe the All at Once Deployment option
It is the fastest but instances will not be available for traffic until completion.
Describe the Rolling Deployment option
It updates each bucket of instances one at a time, moving onto the next when the current is healthy.
Describe the Rolling with Additional Batches Deployment option
Like Rolling but spins up new instances to move the batch - So that the old application is still available
Describe the immutable Deployment option
Spins up new instances in a new Auto Scale Group, then deploys the version to these instances and swaps all instances when they are healthy.
What is a Blue/Green Deployment?
It is when you deploy using blue/green naming convention. Existing is blue, new is green. You use Route53 weighted Policy to direct 10% to the new Green env for testing.
How do you deploy your code to Beanstalk?
You have to zip your code first
What is in the .ebextensions directory in the root of your Beanstalk project?
Beanstalk parameter files in YAML/JSON format
What is the naming convention for .ebextension files?
They must end with .config
How do you modify some default settings in the .ebextensions file?
use options_settings