Skip to content

feat(terraform): Deploy gitops network changes #32

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

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Conversation

chris3ware
Copy link
Member

@chris3ware chris3ware commented Oct 22, 2024

PR illustrating successful pipeline run deploying the networking elements of the gitops-2024 project:

  • Infracost comment
  • Validation and Lint comment
  • Apply status comment showing what has been applied
  • Status comment that updates with information at different stages of the deployment. set to hide_and_recreate so you can't see them all
  • Apply triggered by adding the 'approved' label. See README for details.

@chris3ware chris3ware requested a review from a team as a code owner October 22, 2024 21:05
Copy link

github-actions bot commented Oct 22, 2024

💰 Infracost report

Monthly estimate decreased by $9 📉

Changed project Baseline cost Usage cost* Total change New monthly cost
3ware/gitops-2024/terraform/development -$9 +$0 -$9 $0

*Usage costs were estimated using Infracost Cloud settings, see docs for other options.

Estimate details
Key: * usage cost, ~ changed, + added, - removed

──────────────────────────────────
Project: development
Module path: development

- aws_instance.grafana_server
  -$9

    - Instance usage (Linux/UNIX, on-demand, t2.micro)
      -$8

    - root_block_device
    
        - Storage (general purpose SSD, gp2)
          -$0.80

Monthly cost change for 3ware/gitops-2024/terraform/development (Module path: development)
Amount:  -$9 ($9 → $0.00)

──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed

*Usage costs were estimated using Infracost Cloud settings, see docs for other options.

6 cloud resources were detected:
∙ 0 were estimated
∙ 6 were free

Infracost estimate: Monthly estimate decreased by $9 ↓
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project                                    ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ 3ware/gitops-2024/terraform/development            ┃           -$9 ┃         +$0 ┃          -$9 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

✅ Policies passed

This comment will be updated when code changes.

Copy link

Terraform Format and Style success ✅

Terraform Validation success ✅

TFLint success ✅

Copy link

github-actions bot commented Oct 22, 2024

terraform apply -chdir='terraform/development' -lock=true tf.plan
Diff of changes.
+ aws_default_security_group.default will be created
+ aws_internet_gateway.gitops_igw will be created
+ aws_route_table.gitops_rt will be created
+ aws_route_table_association.gitops_rta will be created
+ aws_subnet.gitops_subnet will be created
+ aws_vpc.gitops_vpc will be created
Apply complete! Resources: 6 added, 0 changed, 0 destroyed.
By @chris3ware at 2024-10-22T21:08:41Z (view log).
aws_vpc.gitops_vpc: Still creating... [10s elapsed]
aws_vpc.gitops_vpc: Creation complete after 11s [id=vpc-0aba71765e1bb1c11]
aws_internet_gateway.gitops_igw: Creation complete after 1s [id=igw-0ba328367f3f1adbb]
aws_default_security_group.default: Creation complete after 2s [id=sg-0c4c17241fd4583ba]
aws_route_table.gitops_rt: Creation complete after 1s [id=rtb-067d0260694a77895]
aws_subnet.gitops_subnet: Still creating... [10s elapsed]
aws_subnet.gitops_subnet: Creation complete after 12s [id=subnet-0c070085d2f55ea15]
aws_route_table_association.gitops_rta: Creation complete after 0s [id=rtbassoc-0d3d67e9ada3722c9]

Apply complete! Resources: 6 added, 0 changed, 0 destroyed.

Outputs:

aws_account_id = <sensitive>
default_tags = tomap({
  "3ware:environment" = "development"
  "3ware:managed-by-terraform" = "true"
  "3ware:project-id" = "gitops-2024"
  "3ware:workspace" = "app-us-east-1-development"
})

Copy link

Terraform apply successful 🚀

Summary of changes.
+ aws_default_security_group.default will be created
+ aws_internet_gateway.gitops_igw will be created
+ aws_route_table.gitops_rt will be created
+ aws_route_table_association.gitops_rta will be created
+ aws_subnet.gitops_subnet will be created
+ aws_vpc.gitops_vpc will be created

View run log.

@chris3ware chris3ware merged commit 1028428 into main Oct 22, 2024
6 checks passed
@chris3ware chris3ware deleted the feat-dep-net-3a branch October 22, 2024 21:29
3ware-release bot pushed a commit that referenced this pull request Oct 22, 2024
## [1.2.0](v1.1.0...v1.2.0) (2024-10-22)

### Features

* **terraform:** Deploy gitops network changes ([#32](#32)) ([1028428](1028428))
@3ware-release
Copy link
Contributor

3ware-release bot commented Oct 22, 2024

This PR is included in version 1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant