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

refactor: DeployApp accepts an interface instead of cfn primitives #851

Merged
merged 2 commits into from
Apr 20, 2020
Merged

refactor: DeployApp accepts an interface instead of cfn primitives #851

merged 2 commits into from
Apr 20, 2020

Conversation

efekarakus
Copy link
Contributor

@efekarakus efekarakus commented Apr 17, 2020

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.

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.
@efekarakus efekarakus added the type/refactor Issues that are for cleaning up the codebase. label Apr 17, 2020
@efekarakus efekarakus requested review from kohidave, iamhopaul123 and a team April 17, 2020 22:41
@efekarakus efekarakus mentioned this pull request Apr 17, 2020
16 tasks
@efekarakus
Copy link
Contributor Author

Ran e2e tests and they pass ✅

Ginkgo ran 5 suites in 1h34m47.3868884s
Test Suite Passed

// 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 {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

Copy link
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

:shipit:

workspaceService wsAppReader
ecrService ecrService
dockerService dockerService
s3Service artifactPutter
Copy link
Contributor

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?

Copy link
Contributor Author

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!

@mergify mergify bot merged commit aa0b7b1 into aws:master Apr 20, 2020
@efekarakus efekarakus deleted the refactor/app-deploy branch April 20, 2020 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/refactor Issues that are for cleaning up the codebase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants