Work in progress, using https://github.com/FormidableLabs/terraform-aws-serverless terraform module, and terraform cloud.
https://learn.hashicorp.com/tutorials/terraform/github-actions
To provision ressources on AWS you need an account, and a user that will be used by terraform.
Create AWS IAM user with Administrator permissions in AMI control pannel in AWS console.
Then login to aws via command line using its API key/secret (requires awscli
).
aws configure
Terraform Cloud will be used to store terraform states. Create an account and login via CLI (requires terraform ^0.1.13)
terraform login
Create a repository with you terraform configuration, and integrate workspace with it via terraform cloud website.