forked from aws/copilot-cli
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(stack): add rule prefix and override integ test (aws#2762)
<!-- Provide summary of changes --> Part of aws#2588. Work on the basis of aws#2756. <!-- Issue number, if available. E.g. "Fixes aws#31", "Addresses aws#42, 77" --> By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
- Loading branch information
1 parent
8d9d732
commit c09a98a
Showing
15 changed files
with
153 additions
and
26 deletions.
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
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
File renamed without changes.
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
45 changes: 45 additions & 0 deletions
45
internal/pkg/deploy/cloudformation/stack/testdata/stacklocal/override-cf.yml
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
TaskDefinition: | ||
Metadata: | ||
'aws:copilot:description': 'An ECS task definition to group your containers and run them on ECS' | ||
Type: AWS::ECS::TaskDefinition | ||
DependsOn: LogGroup | ||
Properties: | ||
Family: !Join ['', [!Ref AppName, '-', !Ref EnvName, '-', !Ref WorkloadName]] | ||
NetworkMode: awsvpc | ||
RequiresCompatibilities: | ||
- FARGATE | ||
Cpu: !Ref TaskCPU | ||
Memory: !Ref TaskMemory | ||
ExecutionRoleArn: !Ref ExecutionRole | ||
TaskRoleArn: !Ref TaskRole | ||
ContainerDefinitions: | ||
- Name: !Ref WorkloadName | ||
Image: !Ref ContainerImage | ||
# We pipe certain environment variables directly into the task definition. | ||
# This lets customers have access to, for example, their LB endpoint - which they'd | ||
# have no way of otherwise determining. | ||
Environment: | ||
- Name: COPILOT_APPLICATION_NAME | ||
Value: !Sub '${AppName}' | ||
- Name: COPILOT_SERVICE_DISCOVERY_ENDPOINT | ||
Value: | ||
- Name: COPILOT_ENVIRONMENT_NAME | ||
Value: !Sub '${EnvName}' | ||
- Name: COPILOT_SERVICE_NAME | ||
Value: !Sub '${WorkloadName}' | ||
- Name: COPILOT_LB_DNS | ||
Value: !GetAtt EnvControllerAction.PublicLoadBalancerDNSName | ||
LogConfiguration: | ||
LogDriver: awslogs | ||
Options: | ||
awslogs-region: !Ref AWS::Region | ||
awslogs-group: !Ref LogGroup | ||
awslogs-stream-prefix: copilot | ||
PortMappings: | ||
- ContainerPort: !Ref ContainerPort | ||
- ContainerPort: 2056 | ||
Protocol: "udp" | ||
Ulimits: | ||
- Name: "cpu" | ||
SoftLimit: 1024 | ||
HardLimit: 2048 |
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
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