-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to specify source directory for Lambda@Edge submodule (#260)
* Source directory for Lambda@Edge submodule
- Loading branch information
Zinovii Dmytriv
authored
Mar 12, 2023
1 parent
1354289
commit 5ea3df7
Showing
20 changed files
with
228 additions
and
33 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,72 @@ | ||
--- | ||
name: Bug report | ||
description: Create a report to help us improve | ||
labels: ["bug"] | ||
assignees: [""] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Found a bug? | ||
Please checkout our [Slack Community](https://slack.cloudposse.com) | ||
or visit our [Slack Archive](https://archive.sweetops.com/). | ||
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com) | ||
- type: textarea | ||
id: concise-description | ||
attributes: | ||
label: Describe the Bug | ||
description: A clear and concise description of what the bug is. | ||
placeholder: What is the bug about? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear and concise description of what you expected. | ||
placeholder: What happened? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: reproduction-steps | ||
attributes: | ||
label: Steps to Reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: How do we reproduce it? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: Screenshots | ||
description: If applicable, add screenshots or logs to help explain. | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: environment | ||
attributes: | ||
label: Environment | ||
description: Anything that will help us triage the bug. | ||
placeholder: | | ||
- OS: [e.g. Linux, OSX, WSL, etc] | ||
- Version [e.g. 10.15] | ||
- Module version | ||
- Terraform version | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: Additional Context | ||
description: | | ||
Add any other context about the problem here. | ||
validations: | ||
required: false |
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,71 @@ | ||
--- | ||
name: Feature Request | ||
description: Suggest an idea for this project | ||
labels: ["feature request"] | ||
assignees: [""] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Have a question? | ||
Please checkout our [Slack Community](https://slack.cloudposse.com) | ||
or visit our [Slack Archive](https://archive.sweetops.com/). | ||
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com) | ||
- type: textarea | ||
id: concise-description | ||
attributes: | ||
label: Describe the Feature | ||
description: A clear and concise description of what the feature is. | ||
placeholder: What is the feature about? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear and concise description of what you expected. | ||
placeholder: What happened? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: use-case | ||
attributes: | ||
label: Use Case | ||
description: | | ||
Is your feature request related to a problem/challenge you are trying | ||
to solve? | ||
Please provide some additional context of why this feature or | ||
capability will be valuable. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: ideal-solution | ||
attributes: | ||
label: Describe Ideal Solution | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: alternatives-considered | ||
attributes: | ||
label: Alternatives Considered | ||
description: Explain alternative solutions or features considered. | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: Additional Context | ||
description: | | ||
Add any other context about the problem here. | ||
validations: | ||
required: false |
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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
## what | ||
* Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?) | ||
* Use bullet points to be concise and to the point. | ||
|
||
<!-- | ||
- Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?) | ||
- Use bullet points to be concise and to the point. | ||
--> | ||
|
||
## why | ||
* Provide the justifications for the changes (e.g. business case). | ||
* Describe why these changes were made (e.g. why do these commits fix the problem?) | ||
* Use bullet points to be concise and to the point. | ||
|
||
<!-- | ||
- Provide the justifications for the changes (e.g. business case). | ||
- Describe why these changes were made (e.g. why do these commits fix the problem?) | ||
- Use bullet points to be concise and to the point. | ||
--> | ||
|
||
## references | ||
* Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow). | ||
* Use `closes #123`, if this PR closes a GitHub issue `#123` | ||
|
||
<!-- | ||
- Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow). | ||
- Use `closes #123`, if this PR closes a GitHub issue `#123` | ||
--> |
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
make init | ||
make github/init/context.tf | ||
make readme/build | ||
echo "::set-output name=create_pull_request::true" | ||
echo "create_pull_request=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
else | ||
echo "This module has not yet been updated to support the context.tf pattern! Please update in order to support automatic updates." | ||
|
@@ -37,7 +37,7 @@ jobs: | |
if: steps.update.outputs.create_pull_request == 'true' | ||
uses: cloudposse/actions/github/[email protected] | ||
with: | ||
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | ||
token: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
committer: 'cloudpossebot <[email protected]>' | ||
author: 'cloudpossebot <[email protected]>' | ||
commit-message: Update context.tf from origin source | ||
|
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
run: | | ||
default_branch=$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name) | ||
printf "::set-output name=defaultBranch::%s\n" "${default_branch}" | ||
echo "defaultBranch=${default_branch}" >> "$GITHUB_OUTPUT" | ||
printf "defaultBranchRef.name=%s\n" "${default_branch}" | ||
- name: Update readme | ||
|
@@ -52,7 +52,7 @@ jobs: | |
# If a PR of the auto-update/readme branch is open, this action will just update it, not create a new PR. | ||
uses: cloudposse/actions/github/[email protected] | ||
with: | ||
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | ||
token: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
commit-message: Update README.md and docs | ||
title: Update README.md and docs | ||
body: |- | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
- name: "Handle common commands" | ||
uses: cloudposse/actions/github/[email protected] | ||
with: | ||
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | ||
token: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
reaction-token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: cloudposse/actions | ||
commands: rebuild-readme, terraform-fmt | ||
|
@@ -26,7 +26,7 @@ jobs: | |
- name: "Run tests" | ||
uses: cloudposse/actions/github/[email protected] | ||
with: | ||
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | ||
token: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
reaction-token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: cloudposse/actions | ||
commands: test | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
checks: "syntax,owners,duppatterns" | ||
owner_checker_allow_unowned_patterns: "false" | ||
# GitHub access token is required only if the `owners` check is enabled | ||
github_access_token: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}" | ||
github_access_token: "${{ secrets.REPO_ACCESS_TOKEN }}" | ||
- uses: mszostok/[email protected] | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
name: "Syntax check of CODEOWNERS" | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict'; | ||
|
||
exports.handler = (event, context, callback) => { | ||
const response = event.Records[0].cf.response; | ||
const headers = response.headers; | ||
|
||
// Add a custom header to the response | ||
headers['x-custom-header'] = [{ key: 'X-Custom-Header', value: 'My custom value' }]; | ||
|
||
callback(null, response); | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
terraform { | ||
required_version = ">= 0.13.0" | ||
required_version = ">= 1.3" | ||
|
||
required_providers { | ||
aws = { | ||
|
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
Oops, something went wrong.