Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Add documentation about the role creation #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LinusU
Copy link
Owner

@LinusU LinusU commented Nov 23, 2017

No description provided.

data "aws_iam_policy_document" "EXAMPLE_NAME" {
statement {
actions = ["logs:CreateLogGroup"]
resources = ["arn:aws:logs:${data.aws_region.name}:${data.aws_caller_identity.current.account_id}:*"]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be data.aws_region.current.name (missing .current)


statement {
actions = ["logs:CreateLogStream", "logs:PutLogEvents"]
resources = ["arn:aws:logs:${data.aws_region.name}:${data.aws_caller_identity.current.account_id}:log-group:/aws/lambda/EXAMPLE_NAME:*"]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -0,0 +1,57 @@
# Role

Currently you manually need to create a role for the Lambda to execute as. If you are using [Terraform](https://www.terraform.io) you can use the setup below:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not anymore, but I think it's nice to still have this file? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants