Skip to content

Instantly share code, notes, and snippets.

@russelltadams
Last active January 25, 2021 22:21
Show Gist options
  • Save russelltadams/e3b7ffc45b5dfc5f1071ea5d66150c63 to your computer and use it in GitHub Desktop.
Save russelltadams/e3b7ffc45b5dfc5f1071ea5d66150c63 to your computer and use it in GitHub Desktop.
bootstrap and deploy freetierdeploy.aws
# Bootsstraping steps
create keypair for account if none exists
install AWS CLI and setup creds
create bootstrap bucket by running s3 stack, upload deploy folders
# deploy steps
deploy hostedzone with r53 stack
create reusable-delegation-set from cli, update registrar (now this hosted zone always get same glue records on redeploys)
run ec2 stack
success... almost...
EC2Instance
CREATE_FAILED
In order to use this AWS Marketplace product you need to accept terms and subscribe.
To do so please visit https://aws.amazon.com/marketplace/pp?sku=auhljmclkudu651zy27rih2x2
(Service: AmazonEC2; Status Code: 401; Error Code: OptInRequired;
Request ID: 9b94cd6c-b96a-42c0-8a0c-bf41d5fda693; Proxy: null)
I had to register the image I wanted to use in the region I was deploying in... I am not sure if there is a way around this step... user has to go to the market place and register... unless we can maybe provide a CLI template commands to take of this in the bootstrap step...
after registering the image... success from scratch in a fresh account, after bootstrapping..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment