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

Build own policy instead of using AWSLambdaBasicExecutionRole #13

Open
sjauld opened this issue Apr 29, 2020 · 12 comments · Fixed by #14
Open

Build own policy instead of using AWSLambdaBasicExecutionRole #13

sjauld opened this issue Apr 29, 2020 · 12 comments · Fixed by #14

Comments

@sjauld
Copy link
Contributor

sjauld commented Apr 29, 2020

Terraform is pretty greedy with role attachments, so we should just create a standalone policy to avoid issues elsewhere.

@jufemaiz
Copy link
Member

The problem is aws_iam_policy_attachment not aws_iam_role_policy_attachment

Had that fun today!

@sjauld
Copy link
Contributor Author

sjauld commented Apr 29, 2020

Ooh double issue. Possibly my internet fail

@sjauld
Copy link
Contributor Author

sjauld commented Apr 29, 2020

Also, I don't trust aws_iam_role_policy_attachment

@jufemaiz
Copy link
Member

Also, I don't trust aws_iam_role_policy_attachment

Why's that?

@sjauld
Copy link
Contributor Author

sjauld commented Apr 29, 2020

It seems to break more easily than a normal aws_iam_policy_attachment. Especially if you try to add more policies to the role, which I do quite a lot.

@jufemaiz
Copy link
Member

Really? Strange!

@jufemaiz
Copy link
Member

Are you mixing aws_iam_policy_attachment and aws_iam_role_policy_attachment? Because if you are it will break ><

@sjauld
Copy link
Contributor Author

sjauld commented Apr 29, 2020

yes, that's why I don't use aws_iam_role_policy_attachment

@jufemaiz
Copy link
Member

jufemaiz commented Apr 29, 2020 via email

@sjauld
Copy link
Contributor Author

sjauld commented Apr 29, 2020 via email

@jufemaiz
Copy link
Member

Yep. You can.

@jufemaiz jufemaiz reopened this Apr 29, 2020
@sjauld
Copy link
Contributor Author

sjauld commented Apr 29, 2020 via email

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 a pull request may close this issue.

2 participants