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

Keep track of region in config file #41

Closed
richford opened this issue Oct 6, 2017 · 2 comments
Closed

Keep track of region in config file #41

richford opened this issue Oct 6, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@richford
Copy link
Member

richford commented Oct 6, 2017

Presently, the user could create a few VPCs, switch regions, create a few more, then be unable to retrieve the old region's VPCs.

@richford richford added the bug label Oct 6, 2017
@richford richford self-assigned this Oct 6, 2017
@richford richford added this to the 0.1 milestone Oct 7, 2017
@richford
Copy link
Member Author

richford commented Oct 7, 2017

Proposed solution: format the config file with sections like

[region-name resource-type]

e.g.

[us-east-1 roles]
[us-west-1 security-groups]

For collections of resources, such as PARS and knots, use region as an option name, e.g.

[pars pars-name]
region = region-name
role = role-name
etc.

@richford
Copy link
Member Author

Each resource object should have a region parameter and check that it matches get_region before doing method stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant