Skip to content

SL-667: Add CICD config for Javabuilder demo env #385

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

Merged
merged 4 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions cicd/2-cicd/cicd.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,36 @@ Resources:
- '" }'
Capabilities: CAPABILITY_AUTO_EXPAND
RoleArn: !Sub arn:aws:iam::${AWS::AccountId}:role/admin/CloudFormationService
- Name: app-demo-deploy
ActionTypeId:
Category: Deploy
Owner: AWS
Version: 1
Provider: CloudFormation
InputArtifacts:
- Name: appBuildResults
# The value of `Configuration` must be an object with String (or simple type) properties
Configuration:
StackName:
!If [
TargetsMainBranch,
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably a question for @cat5inthecradle - is it possible/should it be possible to target a branch other than main for a production deploy?

"javabuilder-demo",
!Sub "javabuilder-demo-${GitHubBranch}",
]
ActionMode: CREATE_UPDATE
TemplatePath: appBuildResults::packaged-app-template.yml
TemplateConfiguration: appBuildResults::cicd/3-app/javabuilder/production-demo.config.json
ParameterOverrides: !Join
- ""
- - '{ "SubdomainName": "'
- !If [
TargetsMainBranch,
"javabuilder-demo",
!Sub "javabuilder-demo-${GitHubBranch}",
]
- '" }'
Capabilities: CAPABILITY_AUTO_EXPAND
RoleArn: !Sub arn:aws:iam::${AWS::AccountId}:role/admin/CloudFormationService
- !Ref AWS::NoValue

- !If
Expand Down
15 changes: 15 additions & 0 deletions cicd/3-app/javabuilder/config/production-demo.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Parameters": {
"BaseDomainName": "code.org",
"SubdomainName": "javabuilder-demo",
"BaseDomainNameHostedZonedID": "Z2LCOI49SCXUGU",
"ProvisionedConcurrentExecutions": "50",
"ReservedConcurrentExecutions": "500",
"LimitPerHour": "25",
"LimitPerDay": "100",
"SilenceAlerts": "false"
},
"Tags": {
"EnvType": "production"
}
}