Skip to content

Xref Credential Profile Issue #743

Description

@josjaf

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}

Activity

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