Skip to content

artdolya/cact-aws-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud as Code Templates

Terraform Terraform

Pre-requisites

Install Git
Install Cookiecutter
Install Terraform
Create Git Repository
Create an account in AWS console
Under account name in AWS console go to security credentials and create access key for root user

Generate

cookiecutter git@github.com:adolya/cact-template-base.git

Confirm to switch local state to S3 for further automation

Open terraform.tfstate and search for

"outputs": {
    "base_info": {
        "value": {

Enable repository versioning

Instruction can be found here

Create secrets in your repository settings:

AWS_ACCESS_KEY_ID
with value from tfstate output: github/base: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
with value from tfstate output: github/base: AWS_SECRET_ACCESS_KEY

To access AWS console use:

admin_user with admin_user_password

IMPORTANT

After account infrastructure defined as code. Go to AWS console security credentials and deactivate/delete access key we used at the begining
Also enable Two Factor Authentication for your root account. And use the admin_user, for your future needs.

OPTIONAL

If you wish to enable billing for non-root user follow this

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published