All Projects → sohelamin → aws-security-group-add-ip-action

sohelamin / aws-security-group-add-ip-action

Licence: other
GitHub Action for AWS Security Group Add IP

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aws-security-group-add-ip-action

zhiiiyang
It is a self-updating personal README showing my latest tweet and reply.
Stars: ✭ 27 (-15.62%)
Mutual labels:  github-actions
CodeforcesApiPy
Implementation of https://codeforces.com API
Stars: ✭ 17 (-46.87%)
Mutual labels:  github-actions
NJU-health-report
用于在 GitHub Action 上部署南京大学每日健康填报自动打卡脚本
Stars: ✭ 112 (+250%)
Mutual labels:  github-actions
mc-publish
GitHub Action that helps you publish your Minecraft mods
Stars: ✭ 76 (+137.5%)
Mutual labels:  github-actions
setup-graalvm
No description or website provided.
Stars: ✭ 63 (+96.88%)
Mutual labels:  github-actions
issue-states
GitHub Action that closes or reopens issues when they are moved to a project column
Stars: ✭ 64 (+100%)
Mutual labels:  github-actions
cfn-deploy
A useful GitHub Action to help you deploy cloudformation templates
Stars: ✭ 14 (-56.25%)
Mutual labels:  github-actions
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+15.63%)
Mutual labels:  github-actions
publish-docker-action
GitHub Action used to build, tag and publish docker image to your docker registry
Stars: ✭ 31 (-3.12%)
Mutual labels:  github-actions
create-release-action
| Public | GitHub Action to Create a Release in Octopus Deploy
Stars: ✭ 68 (+112.5%)
Mutual labels:  github-actions
ci-skip
CI skip comment
Stars: ✭ 35 (+9.38%)
Mutual labels:  github-actions
actions-js-build
GitHub Actions for running Javascript build tools and committing file changes
Stars: ✭ 46 (+43.75%)
Mutual labels:  github-actions
myshoes
Auto-scaling VirtualMachine runner 🏃 for GitHub Actions
Stars: ✭ 68 (+112.5%)
Mutual labels:  github-actions
changelog-generator
GitHub Action to generate changelogs, release notes, whatever
Stars: ✭ 95 (+196.88%)
Mutual labels:  github-actions
branch-names
Github action to retrieve branch or tag names with support for all events.
Stars: ✭ 99 (+209.38%)
Mutual labels:  github-actions
verify-linked-issue-action
A GitHub action that verifies your pull request contains a reference to an issue.
Stars: ✭ 18 (-43.75%)
Mutual labels:  github-actions
get-diff-action
GitHub Actions to get git diff
Stars: ✭ 149 (+365.63%)
Mutual labels:  github-actions
gatsby-cli-github-action
GitHub Action wrapping the Gatsby CLI
Stars: ✭ 47 (+46.88%)
Mutual labels:  github-actions
DenverCoder1
Jonah Lawrence's Profile README
Stars: ✭ 320 (+900%)
Mutual labels:  github-actions
tauri-action
Build your Web application as a Tauri binary for MacOS, Linux and Windows
Stars: ✭ 290 (+806.25%)
Mutual labels:  github-actions

AWS Security Group Add IP Action

This action will add your public ip address to your given aws security group(s) with a description. If any ip address already exists with the description then it will update the address instead of adding. And it will remove the added ip address once the main job is completed.

Inputs

aws-access-key-id

Required AWS Access Key ID.

aws-secret-access-key

Required AWS Secret Access Key.

aws-region

Required AWS Region.

aws-security-group-id

Required AWS Security Group (comma separated if multiple).

protocol

The protocol which you want to allow. Default "tcp".

port

The port which you want to allow. Default "22".

to-port

The to port which you want to allow. Default "", leave it empty to allow only one port.

description

The descriptipn of your IP permission. Default "GitHub Action".

AWS IAM Policy

Make sure the IAM user that you have configured has the following policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "UpdateIngress",
            "Effect": "Allow",
            "Action": [
                "ec2:RevokeSecurityGroupIngress",
                "ec2:AuthorizeSecurityGroupIngress"
            ],
            "Resource": "arn:aws:ec2:your-region:your-account-id:security-group/your-security-group-id"
        },
        {
            "Sid": "DescribeGroups",
            "Effect": "Allow",
            "Action": "ec2:DescribeSecurityGroups",
            "Resource": "*"
        }
    ]
}

Replace your-region, your-account-id and your-security-group-id with appropiate values.

Example usage

- name: Add public IP to AWS security group
  uses: sohelamin/aws-security-group-add-ip-action@master
  with:
    aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
    aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    aws-region: 'us-east-1'
    aws-security-group-id: ${{ secrets.AWS_SECURITY_GROUP_ID }}
    port: '22'
    to-port: '30'
    protocol: 'tcp'
    description: 'GitHub Action'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].