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

Add few fixes to minimize stack resource changes #520

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Divyaasm
Copy link
Collaborator

Description

Specifying availiability zones to avoid vpc re-creation
using -p to avoid folder already /var/lib/jenkins exists error! when dataRetention parameter is set to true

Issues Resolved

#517

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@@ -96,6 +96,7 @@ export class CIStack extends Stack {

const auditloggingS3Bucket = new CiAuditLogging(this);
const vpc = new Vpc(this, 'JenkinsVPC', {
availabilityZones: ['us-east-1a', 'us-east-1b', 'us-east-1c'],
Copy link
Member

Choose a reason for hiding this comment

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

This should be dynamic. I always use this repo to deploy in us-west-2. In that case, the deployment would fail. Either take this as context parameters or keep whatever is default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without this change VPC is getting recreated. Hardcodes as both prod and beta deploy in us-east-1. Passing the values thorough context parameter can be implemented.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah that is just for https://build.ci.opensearch.org/. Take into consideration for users deploying in their own dev environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In Review
Development

Successfully merging this pull request may close these issues.

3 participants