Skip to content

🎉 Add documentation about the role creation#1

Open
LinusU wants to merge 1 commit into
masterfrom
role-docs
Open

🎉 Add documentation about the role creation#1
LinusU wants to merge 1 commit into
masterfrom
role-docs

Conversation

@LinusU

@LinusU LinusU commented Nov 23, 2017

Copy link
Copy Markdown
Owner

No description provided.

Comment thread docs/role.md
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
Copy Markdown
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)

Comment thread docs/role.md

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
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

same here

Comment thread docs/role.md
@@ -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
Copy Markdown
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