Skip to content

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

Open

Description

@jsheflin

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

Activity

  1. ryandeivert commented on Aug 5, 2020

    @ryandeivert
    Contributor

    @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

  2. jsheflin commented on Aug 5, 2020

    @jsheflin
    Author
  3. ryandeivert commented on Aug 5, 2020

    @ryandeivert
    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

  4. jsheflin commented on Aug 5, 2020

    @jsheflin
    Author
  5. jsheflin commented on Aug 5, 2020

    @jsheflin
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions