-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from MavenCode:feature-policy-parallel-dev
Feature-policy-parallel-dev
- Loading branch information
Showing
11 changed files
with
278 additions
and
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Tag and versioning of commits on push and pull-request to main. | ||
|
||
name: "tags & versions" | ||
|
||
on: | ||
push: | ||
branch: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
- "Docs/**" | ||
pull_request: | ||
branch: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
- "Docs/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
- name: Bump version and push tag | ||
id: current_tag | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
RELEASE_BRANCHES: master, main | ||
DEFAULT_BUMP: patch | ||
VERBOSE: false | ||
|
||
- name: Git release versioning | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ steps.current_tag.outputs.new_tag }} | ||
name: Release ${{ steps.current_tag.outputs.new_tag }} | ||
body: ${{ steps.current_tag.outputs.changelog }} |
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,31 @@ | ||
# Local .terraform directories | ||
**/.terraform/* | ||
|
||
# .tfstate files | ||
*.tfstate | ||
*.tfstate.* | ||
|
||
# Crash log files | ||
crash.log | ||
|
||
# Ignore any .tfvars files that are generated automatically for each Terraform run. Most | ||
# .tfvars files are managed as part of configuration and so should be included in | ||
# version control. | ||
# | ||
# example.tfvars | ||
|
||
# Ignore override files as they are usually used to override resources locally and so | ||
# are not checked in | ||
override.tf | ||
override.tf.json | ||
*_override.tf | ||
*_override.tf.json | ||
|
||
# Include override files you do wish to add to version control using negated pattern | ||
# | ||
# !example_override.tf | ||
|
||
# Include tfplan files | ||
.terraform.lock.hcl | ||
|
||
.DS_Store |
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,15 +1,18 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Id": "sqspolicy", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Principal": "*", | ||
"Action": "sqs:*", | ||
"Resource": "arn:aws:sqs:*:*:s3-event-queue", | ||
"Condition": { | ||
"ArnEquals": { "aws:SourceArn": "${var.bucket_arn}" } | ||
"Version": "2012-10-17", | ||
"Id": "sqspolicy", | ||
"Statement": [ | ||
{ | ||
"Sid": "First", | ||
"Effect": "Allow", | ||
"Principal": "*", | ||
"Action": "sqs:SendMessage", | ||
"Resource": "${resource_arn}", | ||
"Condition": { | ||
"ArnEquals": { | ||
"aws:SourceArn": "${bucket_arn}" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 3.67.0" | ||
} | ||
} | ||
} | ||
|
||
provider "aws" { | ||
region = var.region | ||
access_key = var.access_key | ||
secret_key = var.secret_key | ||
} |
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,7 +1,13 @@ | ||
# queue module variables | ||
name = "s3-event-queue" | ||
policy = default-policy.json | ||
bucket_arn = "null" | ||
bucket_id = "null" | ||
dependency = [] | ||
policy = "test-policy.json" | ||
bucket_arn = data.aws_s3_bucket.bucket_vars.arn | ||
bucket_id = data.aws_s3_bucket.bucket_vars.id | ||
dependency = [data.aws_s3_bucket.bucket_vars.id] # = [] for no implenmentation | ||
tag = "terraform-IaC" | ||
env = "test" | ||
# bucket resource test variables | ||
bucket_name = "s3-bucket" | ||
acl = "private" | ||
tag_name = "terraform-IaC" | ||
env_name = "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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Id": "sqspolicy", | ||
"Statement": [ | ||
{ | ||
"Sid": "First", | ||
"Effect": "Allow", | ||
"Principal": "*", | ||
"Action": "sqs:SendMessage", | ||
"Resource": "${resource_arn}", | ||
"Condition": { | ||
"ArnEquals": { | ||
"aws:SourceArn": "${bucket_arn}" | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.