pa-wills / Home-Assistant-WatchDog

An AWS-powered watchdog that alerts me when HA dies.
MIT License
0 stars 0 forks source link

Multi environment #8

Open pa-wills opened 2 years ago

pa-wills commented 2 years ago

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-basic-walkthrough.html

So, I would like to have a test environment separate from the production environment.

The above walkthrough deals with the requirement in the following way:

I think this is the way to proceed.

Something else - how would I handle development off the master branch? Presumably by instantiating the stack separately. I.e. one pipeline instance per branch, and 2 envs per pipeline. I think this makes sense. I don't necessarily need to us the pipeline for the dev branch either - i could just get CF to build it directly from the GUI, or use sam on the console.

pa-wills commented 2 years ago

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conditions-sample-templates.html

Conditional resource creation based on env-type. Excellent! This will allow me to keep a single template for both envs / stages.