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

Adding deploy mode for datasets #40

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

oscarpulido55
Copy link
Contributor

Issue #, if available:

Description of changes:

Usually you need to deploy not a single dataset but many, so to have a single parameters-$ENV.json file per environment forces you to change the json descriptor each time you need to deploy a new dataset, losing the Jsons that were used to deploy the above datasets.

In the day to day work with the framework, it is common the need to re-deploy the same dataset several times, after a minor change, specially in the dev environment, and rewrite the Json descriptor file each time is not an optimal way to do that.

Instead of having a single json, the present alternative propose to have a folder with one Json file per dataset.

That way the template creates the necessary resources for each dataset from the parameters defined in a parameters/parameters-$DATASET.json file in the parameters folder, the dataset will be deployed only if it has changed since the last commit, that way we have in the parameters folder the history of all the deployed datasets.

The resources will be created depending on the branch (dev, test, master) in the corresponding environment/account (dev,test,prod), so no specific environment is necessary in the parameters file name itself.

@mousamm mousamm self-assigned this Apr 12, 2021
@mousamm mousamm added the enhancement New feature or request label Apr 12, 2021
@mousamm mousamm merged commit 071ce68 into aws-solutions-library-samples:master Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants