Before all, you need set AWS credentials ENVs using:
export AWS_ACCESS_KEY_ID=xxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxxx
export AWS_REGION=us-east-1
Or configure it in windows environments.
aws s3api create-bucket --bucket fiap-irango-tfstate --region us-east-1
cp secrets.json.example secrets.json
# Edit secrets.json with your secrets
aws secretsmanager create-secret --name fiap-irango-secrets-api --secret-string file://env.json
aws secretsmanager delete-secret --secret-id fiap-irango-secrets-api --force-delete-without-recovery
# To init terraform
make init
# To run terraform plan
make plan
# To apply changes
make up
To destroy resources:
make down
# To init terraform
terraform -chdir=terraform init
# To run terraform plan
terraform -chdir=terraform plan
# To apply changes
terraform -chdir=terraform apply -auto-approve
To destroy resources:
terraform -chdir=terraform destroy -auto-approve