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

Let users specify AWS region dynamically. #21

Closed
xydinesh opened this issue Apr 10, 2017 · 3 comments
Closed

Let users specify AWS region dynamically. #21

xydinesh opened this issue Apr 10, 2017 · 3 comments

Comments

@xydinesh
Copy link

I have a use case I have to perform actions in multiple regions. As of now I don't have way to specify region dynamically. For example,

I want to create one vpc with cidr: 10.0.1.0/24 in us-east-1 and other with cidr: 10.0.2.0/24 in us-west-1. I don't have a way to specify region for actions at the moment.

In boto3, I can pass region as region_name when creating client.

import boto3
client = boto3.client('ec2', region_name='us-west-1')

I have created custom actions to pass region as an argument at the moment.

@xydinesh
Copy link
Author

xydinesh commented Apr 10, 2017

One work around is setting region as a datastore value and let config.yaml read it.

In, /opt/stackstorm/configs/aws.yaml

region = {{ st2kv.system.region }}

@xydinesh
Copy link
Author

This pull request #37 , address this issue.

@xydinesh
Copy link
Author

xydinesh commented Aug 9, 2017

Pull request #44, address this issue

@xydinesh xydinesh closed this as completed Aug 9, 2017
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