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

Issue #232 CreateInstances for new StackSets and UpdateInstances per parameters #256

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

pjnkumar
Copy link

@pjnkumar pjnkumar commented Nov 10, 2020

To provide support for CreateInstances and UpdateInstances along the lines of Issue #232

  • Please check if the PR fulfills these requirements
  • [ X] The commit message describes your change
  • [ X] Tests for the changes have been added if possible (for bug fixes / features)
  • [ X] Docs have been added / updated (for bug fixes / features)
  • [ X] Changes are mentioned in the changelog (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    This is a feature enhancement. It allows for Stackset creation and updates by accounts/regions rather than for all accounts/regions in the Stackset. It basically is a fork of the existing function cfnUpdateStackSet with all the same features with the additional option of specifying accounts/regions

  • What is the current behavior? (You can also link to an open issue here)
    Current function cfnUpdateStackSet does not provide for a way to specify accounts/regions. Issue [Feature] CreateStackInstances and UpdateStackInstances #232

  • What is the new behavior (if this is a feature change)?
    A new function cfnUpdateStackSetForAccounts is built to specify accounts and regions in StackSet updates in the lines of Issue [Feature] CreateStackInstances and UpdateStackInstances #232

  • The function creates new stack instances (CreateStackInstances) if the StackSet does not exist. It will not add new stack instances if the StackSet already exists
  • The function will only update the stack instances (UpdateStackInstances) as per the accounts and regions passed
  • Does this PR introduce a breaking change? (What changes might users need to make in their setup due to this PR?)
    This is a non-breaking change. A function cfnUpdateStackSetForAccounts has been introduced that has the same features as cfnUpdateStackSet but with the option to supply accounts and regions

  • Other information:
    Example function calls:

cfnUpdateStackSetForAccounts(stackSet:'myStackSetForAccounts', file:'myStackSetForAccounts.yml', pollInterval:1000, accounts:["012345678901"], regions:["us-east-1","us-east-2"])

Changes:
Added CFNUpdateStackSetForAccountsStep.java
Added CFNUpdateStackSetForAccountsStepTest.java

Copy link
Contributor

@tylersouthwick tylersouthwick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you update the readme with usage?

@@ -42,6 +42,7 @@
import javax.annotation.Nonnull;
import java.io.IOException;
import java.util.Collection;
import java.util.Objects;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this unused import

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your review and inputs. I have tried to incorporate them. Kindly review and advise

@hoegertn
Copy link
Contributor

@tylersouthwick is this still relevant? Would merge it and release a new version soon.

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

Successfully merging this pull request may close these issues.

None yet

3 participants