cloudtools / cloudtools/stacker

Xref Credential Profile Issue

Open
#743 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
707
Forks
162
PR merge metrics
No merged PRs in 30d

Description

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<'normandy-aws2-nat-vpc::ManagedSecurityGroup'>>}: () 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}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.