Use almost the default settings in the S3 wizard. We named ours "openoakland-infra".
- Enable versioning
We created ours accordingly:
- Table Name:
openoakland_infra
- Primary Key:
LockID
Copy this JSON into the IAM policy editor
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::openoakland-infra"
},
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:PutObject"],
"Resource": "arn:aws:s3:::openoakland-infra/terraform"
},
{
"Effect": "Allow",
"Action": [
"dynamodb:GetItem",
"dynamodb:PutItem",
"dynamodb:DeleteItem"
],
"Resource": "arn:aws:dynamodb:*:*:openoakland-infra/terraform"
}
]
}
terraform init