cloudtools / troposphere

troposphere - Python library to create AWS CloudFormation descriptions
BSD 2-Clause "Simplified" License
4.93k stars 1.45k forks source link

how to switch multiple profiles ? #2050

Open kalavathiy opened 2 years ago

JohnPreston commented 2 years ago

Do you mean AWS Accounts?

kalavathiy commented 2 years ago

Yes

On Fri, Jun 3, 2022 at 1:45 AM John Preston @.***> wrote:

Do you mean AWS Accounts?

— Reply to this email directly, view it on GitHub https://github.com/cloudtools/troposphere/issues/2050#issuecomment-1145641179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYSXCXNRWE4E2B7YCHEKVTVNGSYTANCNFSM5XWVENNA . You are receiving this because you authored the thread.Message ID: @.***>

jerry153fish commented 2 years ago

Well, you can use troposphere with sceptre which manages all infra organization parts.

kalavathiy commented 2 years ago

can you please provide an example script for multiple profiles using in the same gen_tpl?

On Mon, Jun 6, 2022 at 11:50 PM Jerry Chen @.***> wrote:

Well, you can use troposphere with sceptre which manages all infra organization parts.

— Reply to this email directly, view it on GitHub https://github.com/cloudtools/troposphere/issues/2050#issuecomment-1148265457, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYSXCWX4WRII7PGDOXDD5LVN3WNDANCNFSM5XWVENNA . You are receiving this because you authored the thread.Message ID: @.***>

JohnPreston commented 2 years ago

Well Troposphere generates the templates, not the stacks, which are linked but one (templates) does not need the other. If you are going to use Troposphere with scripts in spectre then make sure for things like region/accounts to use the AWS Intrinsinc functions instead of hardcoding values into the templates. Makes them far more reusable.