-
Notifications
You must be signed in to change notification settings - Fork 428
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
refactor: DeployApp accepts an interface instead of cfn primitives #851
Conversation
All application stacks need to implement the stack.StackConfiguration interface. By having DeployApp" accept that interface we can have the method deploy any type of application.
Ran e2e tests and they pass ✅
|
// DeployApp deploys an application stack and waits until the deployment is done. | ||
// If the application doesn't exist, then it creates the stack. | ||
// If the application already exists, it updates the stack. | ||
func (cf CloudFormation) DeployApp(conf StackConfiguration, opts ...cloudformation.StackOption) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workspaceService wsAppReader | ||
ecrService ecrService | ||
dockerService dockerService | ||
s3Service artifactPutter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a tiny thing - can we call this artifactUploader or artifactStorer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll incorporate this in the next PR!
All application stacks need to implement the cloudformation.StackConfiguration
interface. By having "DeployApp" accept that interface we can have the
method deploy any type of application.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.