Skip to content

Instantly share code, notes, and snippets.

@clayrisser
Last active April 25, 2018 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayrisser/5a2aa6410b5e5a1eeabc4fa47160fa8d to your computer and use it in GitHub Desktop.
Save clayrisser/5a2aa6410b5e5a1eeabc4fa47160fa8d to your computer and use it in GitHub Desktop.
Lambda policy
provider "aws" {
region = "us-west-2"
shared_credentials_file = "~/.aws/credentials"
}
resource "aws_iam_user" "user" {
name = "some-new-aws-user"
}
resource "aws_iam_user_policy_attachment" "test-attach" {
user = "some-new-aws-user"
policy_arn = "arn:aws:iam::aws:policy/AWSLambdaFullAccess"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment