-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bugfix/m2-6921-summary-completed-only-and…
…-order # Conflicts: # src/apps/answers/tests/test_answers.py
- Loading branch information
Showing
6 changed files
with
191 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Overriding Copilot generated CloudFormation templates with YAML Patches | ||
|
||
The file `cfn.patches.yml` contains a list of YAML/JSON patches to apply to | ||
your template before AWS Copilot deploys it. | ||
|
||
To view examples and an explanation of how YAML patches work, check out the [documentation](https://aws.github.io/copilot-cli/docs/developing/overrides/yamlpatch). | ||
|
||
Note only [`add`](https://www.rfc-editor.org/rfc/rfc6902#section-4.1), | ||
[`remove`](https://www.rfc-editor.org/rfc/rfc6902#section-4.2), and | ||
[`replace`](https://www.rfc-editor.org/rfc/rfc6902#section-4.3) | ||
operations are supported by Copilot. | ||
Patches are applied in the order specified in the file. | ||
|
||
## Troubleshooting | ||
|
||
* `copilot [noun] package` preview the transformed template by writing to stdout. | ||
* `copilot [noun] package --diff` show the difference against the template deployed in your environment. |
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,21 @@ | ||
# Delete the task role resource | ||
# - op: remove | ||
# path: /Resources/TaskRole | ||
|
||
# Add a service connect alias | ||
# - op: add | ||
# path: /Resources/Service/Properties/ServiceConnectConfiguration/Services/0/ClientAliases/- | ||
# value: | ||
# Port: !Ref TargetPort | ||
# DnsName: yamlpatchiscool | ||
|
||
# Replace the task role in the task definition | ||
# - op: replace | ||
# path: /Resources/TaskDefinition/Properties/TaskRoleArn | ||
# value: arn:aws:iam::123456789012:role/MyTaskRole | ||
|
||
# Only 10 policies allowed per account. Hard limit. | ||
# A shared policy is created via terraform | ||
# https://github.com/aws/copilot-cli/issues/5743#issuecomment-2022882367 | ||
- op: remove | ||
path: /Resources/LogResourcePolicy |
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