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

Xref Credential Profile Issue #743

Open
josjaf opened this issue Sep 12, 2019 · 0 comments
Open

Xref Credential Profile Issue #743

josjaf opened this issue Sep 12, 2019 · 0 comments

Comments

@josjaf
Copy link

josjaf commented Sep 12, 2019

Using the following stack definition, I'm having issues with an xref, Stacker is reading the wrong credential profile - I would assume here that it would read the credential profile that is defined with the stack, not from the boto3 sdk order. This xref should be available from the default profile, but I'm getting an error:

Couldn't resolve lookup in variable `SGMain`, lookup: ${Lookup<Literal<'xref'> Literal<'normandy-aws2-nat-vpc::ManagedSecurityGroup'>>}: (<class 'stacker.exceptions.StackDoesNotExist'>) Stack: "normandy-aws2-nat-vpc" does not exist in outputs or the lookup is not available in this stacker run)

When I export AWS_PROFILE=nondefaultprofile, the error goes away.

  - name: test
    template_path: templates/deploy.yml
    enabled: true
    profile: ${default_profile}
    variables:
      namespace: ${namespace}
      ECRArn: ${ecr_arn}
      KeyPairName: user
      ImageId: ${ami} # amazon linux2 us-east-1
      SubnetId: ${subnet} #${subnet} # public subnet
      VpcId: ${vpcid}
      VpcCidr: ${vpccidr}
      SGMain: ${sg}

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

1 participant