Skip to content

[BUG] Permission issue when deploying #31

Closed
@cartalla

Description

@cartalla

I'm having issue when bootstrapping cdk. It successfully bootstrapped when I run this:

cdk bootstrap aws://xxxxxxx/us-east-1 -c region=us-east-1 -c account_id=xxxxxx -c stack_name=slurmminimal -c SshKeyPair=key -c VpcId=vpc-0ff9de2afc42ab3 -c SubnetId=subnet-0456bccaac4a63914 -c ErrorSnsTopicArn=arn:aws:sns:us-east-1:098962443:ErrorSlurm -c SubmitterSecurityGroupIds=eyJzZ1NsdXJtIjogInNnLTA0MjgxZDc2ZjljNGEwZGNmIn0=

But when I minimal deploy with

./install.sh --prompt --cdk-cmd create

CDK would bootstrap again and failed to get a value from App()

ERROR:root:No token file found. Also make sure that a [prod] section with a 'token = value' assignment exists.
Traceback (most recent call last):
File "app.py", line 24, in
app = App()

I have configured aws secret id and key, and also region. The user and ec2 roles don't have any IAM permission.

Originally posted by @lihnm in #12 (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