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

Improved documentation how to override the AWS environment variable #89

Open
aaronsteers opened this issue Apr 22, 2020 · 0 comments
Open
Assignees

Comments

@aaronsteers
Copy link
Contributor

aaronsteers commented Apr 22, 2020

In a recent demo, a user asked how to leverage an existing client VPC and existing subnets. The below sample code would have been useful if it were included in the documentation.

Important to note that this:

 module ___ ____ {
 ...
 environment = module.env.environment
 ...

...can be rewritten as:

 module ___ ____ {
 ...
  environment = {
    vpc_id          = module.env.environment.vpc_id
    aws_region      = module.env.environment.aws_region
    public_subnets  = module.env.environment.public_subnets
    private_subnets = module.env.environment.private_subnets
  }
 ...

... and that then each variable can be overridden or fed in from another source.

@aaronsteers aaronsteers self-assigned this Apr 22, 2020
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