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

feat: Perform EC2 deployments via CloudFormation #948

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Conversation

akash1810
Copy link
Member

@akash1810 akash1810 commented Sep 19, 2024

What does this change?

Uses the new GuEc2AppExperimental available in GuCDK v59.5.0 to deploy changes to the autoscaling group entirely via a CloudFormation update.

How to test

Deploy the branch?! It should succeed. This has been done on CODE.

How can we measure success?

More data points to evaluate the effectiveness of GuEc2AppExperimental.

@akash1810 akash1810 marked this pull request as ready for review September 19, 2024 18:13
@akash1810 akash1810 requested a review from a team as a code owner September 19, 2024 18:13
Base automatically changed from aa/riff-raff-yaml to main October 2, 2024 09:38
@akash1810 akash1810 force-pushed the aa/cfn-deploy-only branch 2 times, most recently from 51d3a6d to a2ef5ec Compare October 2, 2024 12:55
const pattern = new GuPlayApp(this, {
const { buildIdentifier } = props;

const filename = `${app}-${buildIdentifier}.deb`;
Copy link

@adamnfish adamnfish Oct 7, 2024

Choose a reason for hiding this comment

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

The most minor thing in the world, but I get a niggle that we could use a different separator character here? Hyphens are commonly to separate words in the artefact name, making the version pop out will help at a glance, and if someone wants to parse it out for any reason later. It looks like sbt-native-packager is using _ as the version delimiter, could we do the same?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can do. Will raise a follow-up PR. Would you think we can formalise the use of _? I've been struggling to think how we'd address this TODO - https://github.com/guardian/cdk/blob/890c89e07d6715277ef9db4f01baeafddc7696e8/src/experimental/patterns/ec2-app.ts#L265.

@akash1810 akash1810 merged commit b0d1841 into main Oct 7, 2024
4 checks passed
@akash1810 akash1810 deleted the aa/cfn-deploy-only branch October 7, 2024 15:44
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.

2 participants