-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(codepipeline-actions): use IBaseService instead of BaseService in EcsDeployActionProps #6412
Merged
Merged
Changes from 5 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8be4b51
use IService instead of BaseService
atsushi-ishibashi f38e6f4
fromEc2ServiceArn -> fromEc2ServiceAttributes, fromFargateServiceArn …
atsushi-ishibashi 2333da2
fix ci error
atsushi-ishibashi 441f276
fix build error
atsushi-ishibashi 51fc085
Merge branch 'master' into replace-iservice
atsushi-ishibashi 61f2f5f
avoid breaking changes
atsushi-ishibashi 8c9e994
add IBaseService to implements of BaseService
atsushi-ishibashi b44e309
change to ICluster, add serviceName
atsushi-ishibashi e786f9f
fix build error
atsushi-ishibashi bee67c6
fix build error
atsushi-ishibashi 739a61a
create ImportedBaseService, add some tests
atsushi-ishibashi 99ecc57
remove unused module, rename test
atsushi-ishibashi fba4573
fix build error
atsushi-ishibashi 6e1d696
create fromServiceAtrributes, remove ImportedBaseService. Some tests
atsushi-ishibashi 583b8af
update comment, tests
atsushi-ishibashi fee33f2
update comments, tests
atsushi-ishibashi 2a4e1f3
Merge branch 'master' into replace-iservice
atsushi-ishibashi 5310ca4
Merge branch 'master' into replace-iservice
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,20 @@ export interface IEc2Service extends IService { | |
|
||
} | ||
|
||
/** | ||
* The properties to import from the service using the EC2 launch type. | ||
*/ | ||
export interface Ec2ServiceAttributes { | ||
/** | ||
* The name of the cluster that hosts the service. | ||
*/ | ||
readonly clusterName: string; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be |
||
/** | ||
skinny85 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* The name of the service. | ||
*/ | ||
readonly serviceName: string; | ||
} | ||
|
||
/** | ||
* This creates a service using the EC2 launch type on an ECS cluster. | ||
* | ||
|
@@ -95,11 +109,12 @@ export interface IEc2Service extends IService { | |
export class Ec2Service extends BaseService implements IEc2Service { | ||
|
||
/** | ||
* Imports from the specified service ARN. | ||
* Imports from the specified service attrributes. | ||
*/ | ||
public static fromEc2ServiceArn(scope: Construct, id: string, ec2ServiceArn: string): IEc2Service { | ||
public static fromEc2ServiceAttributes(scope: Construct, id: string, attrs: Ec2ServiceAttributes): IEc2Service { | ||
class Import extends Resource implements IEc2Service { | ||
public readonly serviceArn = ec2ServiceArn; | ||
public readonly serviceName = attrs.serviceName; | ||
public readonly clusterName = attrs.clusterName; | ||
} | ||
return new Import(scope, id); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Remove the
test.doesNotThrow()
, it's redundant.