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

trying to use a custom role - where all do I change it? #161

Open
jsheflin opened this issue Aug 5, 2020 · 5 comments
Open

trying to use a custom role - where all do I change it? #161

jsheflin opened this issue Aug 5, 2020 · 5 comments

Comments

@jsheflin
Copy link

jsheflin commented Aug 5, 2020

Thanks for sharing this, BTW, it will be wonderful when I get it working.

Need to deploy with an existing role due to permission issues.

I replaced the role in lambda_iam.tf (2 times), but I am still getting the "Access Denied" while deploying.

Where else should I add my custom role?

thanks

@ryandeivert
Copy link
Contributor

ryandeivert commented Aug 5, 2020

@jsheflin is the custom role you need for creating the resources? it sounds like you might need something like this:

provider "aws" {
  assume_role {
    role_arn     = "arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME"
    session_name = "SESSION_NAME"
    external_id  = "EXTERNAL_ID"
  }
}

if so, you'd have to edit the main.tf with your values

@jsheflin
Copy link
Author

jsheflin commented Aug 5, 2020 via email

@ryandeivert
Copy link
Contributor

@jsheflin please follow the above advice and do not change the lambda_iam.tf file itself. if you're getting access denied with the role you're supplying in the provider block (using role_arn) then you should check to make sure that role has the permissions you need

@jsheflin
Copy link
Author

jsheflin commented Aug 5, 2020 via email

@jsheflin
Copy link
Author

jsheflin commented Aug 5, 2020

So I can't assume the roles I need to run the deploy. I guess my only route is to request more permissions from the owner? Or is there any route around? I can create the buckets, logs, policies, SQS, SNS, via aws console.

I know this is not a binaryalert issue, so thanks for the help already.

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

No branches or pull requests

2 participants