Skip to content

Instantly share code, notes, and snippets.

@jonesy1234
Last active October 28, 2022 07:38
Show Gist options
  • Save jonesy1234/2758797798382709eebe108086d9eee1 to your computer and use it in GitHub Desktop.
Save jonesy1234/2758797798382709eebe108086d9eee1 to your computer and use it in GitHub Desktop.
Type: AWS::IAM::ManagedPolicy
Properties:
Description: 'IAM Roles for Terraform State Resources'
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:DeleteItem
- dynamodb:Describe*
- dynamodb:ListTagsOfResource
Resource:
- !Sub 'arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/TerraformDynamoDBTable'
- Effect: Allow
Action:
- s3:GetObject
- s3:PutObject
Resource:
- !Sub 'arn:${AWS::Partition}:s3:::TerraformBucket/*'
- Effect: Allow
Action:
- s3:List*
- s3:Get*
- s3:Describe*
Resource:
- !Sub 'arn:${AWS::Partition}:s3:::TerraformBucket'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment