Skip to content

Commit

Permalink
Merge pull request #115 from lorengordon/cleanup-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored Jan 19, 2021
2 parents 837dc63 + 6b0d02a commit b8ebd5a
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 631 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.0.0
current_version = 2.0.1
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
15 changes: 0 additions & 15 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,11 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: gomod
directory: "/tests"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: terraform
directory: "/tests/use_all_variables"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: terraform
directory: "/tests/no_create_sg"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: terraform
directory: "/tests/create_sg"
schedule:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ tardigrade-ci/
# eclint
.git/

# terratest packaging
tests/go.*

# terraform lock-file
.terraform.lock.hcl
10 changes: 4 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
provider "aws" {
}

resource "aws_security_group" "this" {

name = var.name
description = var.description
vpc_id = var.vpc_id
tags = var.tags

revoke_rules_on_delete = var.revoke_rules_on_delete

dynamic "ingress" {
for_each = var.ingress_rules
content {
Expand Down Expand Up @@ -35,6 +35,4 @@ resource "aws_security_group" "this" {
to_port = lookup(egress.value, "to_port", null)
}
}
revoke_rules_on_delete = var.revoke_rules_on_delete
tags = var.tags
}
1 change: 0 additions & 1 deletion requirements/dev.txt

This file was deleted.

6 changes: 0 additions & 6 deletions tests/create_sg/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,13 @@ provider "aws" {

module "vpc" {
source = "github.com/terraform-aws-modules/terraform-aws-vpc?ref=v2.15.0"
providers = {
aws = aws
}

name = "tardigrade-security-group-testing"
cidr = "10.0.0.0/16"
}

module "create_security_group" {
source = "../../"
providers = {
aws = aws
}

name = "tardigrade-security-group-testing"
vpc_id = module.vpc.vpc_id
Expand Down
5 changes: 0 additions & 5 deletions tests/go.mod

This file was deleted.

586 changes: 0 additions & 586 deletions tests/go.sum

This file was deleted.

18 changes: 7 additions & 11 deletions tests/use_all_variables/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ provider "aws" {

module "vpc" {
source = "github.com/terraform-aws-modules/terraform-aws-vpc?ref=v2.15.0"
providers = {
aws = aws
}

name = "tardigrade-security-group-testing"
cidr = "10.0.0.0/16"
}

module "use_all_variables" {
source = "../../"
providers = {
aws = aws
}

name = "tardigrade-security-group-testing"
vpc_id = module.vpc.vpc_id

revoke_rules_on_delete = true

tags = {
environment = "testing"
}

ingress_rules = [
{
"from_port" = "0",
Expand All @@ -37,9 +38,4 @@ module "use_all_variables" {
"cidr_blocks" = ["0.0.0.0/0"]
}
]

revoke_rules_on_delete = true
tags = {
environment = "testing"
}
}

0 comments on commit b8ebd5a

Please sign in to comment.