-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Requested features, general updates #110
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
|
||
- name: Create Pull Request | ||
if: steps.update.outputs.create_pull_request == 'true' | ||
uses: cloudposse/actions/github/create-pull-request@0.22.0 | ||
uses: cloudposse/actions/github/create-pull-request@0.30.0 | ||
with: | ||
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | ||
committer: 'cloudpossebot <[email protected]>' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: "auto-readme" | ||
on: | ||
schedule: | ||
# Example of job definition: | ||
# .---------------- minute (0 - 59) | ||
# | .------------- hour (0 - 23) | ||
# | | .---------- day of month (1 - 31) | ||
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | ||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | ||
# | | | | | | ||
# * * * * * user-name command to be executed | ||
|
||
# Update README.md nightly at 4am UTC | ||
- cron: '0 4 * * *' | ||
|
||
jobs: | ||
update: | ||
if: github.event_name == 'schedule' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Update readme | ||
shell: bash | ||
id: update | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
run: | | ||
make init | ||
make readme/build | ||
# Ignore changes if they are only whitespace | ||
git diff --ignore-all-space --ignore-blank-lines --quiet README.md && { git restore README.md; echo Ignoring whitespace-only changes in README; } | ||
|
||
- name: Create Pull Request | ||
# This action will not create or change a pull request if there are no changes to make. | ||
# 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 }} | ||
commit-message: Update README.md and docs | ||
title: Update README.md and docs | ||
body: |- | ||
## what | ||
This is an auto-generated PR that updates the README.md and docs | ||
|
||
## why | ||
To have most recent changes of README.md and doc from origin templates | ||
|
||
branch: auto-update/readme | ||
base: main | ||
delete-branch: true | ||
labels: | | ||
auto-update | ||
no-release | ||
readme |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# https://docs.aws.amazon.com/eks/latest/APIReference/API_RemoteAccessConfig.html | ||
|
||
module "ssh_access" { | ||
count = local.need_remote_access_sg ? 1 : 0 | ||
count = local.need_ssh_access_sg ? 1 : 0 | ||
source = "cloudposse/security-group/aws" | ||
version = "0.4.3" | ||
|
||
|
@@ -22,6 +22,14 @@ module "ssh_access" { | |
from_port = 22 | ||
to_port = 22 | ||
description = "Allow SSH ingress" | ||
}, | ||
{ | ||
key = "ssh-egress" | ||
type = "egress" | ||
from_port = 0 | ||
to_port = 65535 | ||
protocol = "tcp" | ||
description = "Allow SSH egress" | ||
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. we do we call it "SSH egress" if all the ports are open? 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. It is called "SSH egress" because the ports are only open to destinations from which SSH ingress is allowed. 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. I know this is an old PR, but I'm looking back on this and curious why the ssh egress rule was needed given SecurityGroups are stateful |
||
}] | ||
}] | ||
|
||
|
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.
I would think
depends_on = [module.eks_cluster.kubernetes_config_map_id]
impliesdepends_on = [module.eks_cluster]
, no?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.
I would expect that you are right, but I did not want to spend the time to test it, and I ran into problems with the previous version.