Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into d-costa/sync
Browse files Browse the repository at this point in the history
  • Loading branch information
d-costa committed Nov 11, 2024
2 parents e649cb4 + fd3dad6 commit c9bcfb9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
with:
directory: .
quiet: true
skip_check: CKV_TF_1,CKV_GCP_32,CKV_GCP_34,CKV2_GCP_18,CKV_TF_2
skip_check: CKV_TF_1,CKV_TF_2,CKV_GCP_32,CKV_GCP_34,CKV2_GCP_18
framework: terraform

# Terraform-docs
- uses: terraform-docs/gh-actions@v1.1.0
- uses: terraform-docs/gh-actions@v1.3.0
id: terraform-docs
with:
working-dir: .
Expand All @@ -43,7 +43,7 @@ jobs:
git-push: 'false'

# Push Terraform-docs changes
- uses: planetscale/ghcommit-action@v0.1.38
- uses: planetscale/ghcommit-action@v0.2.0
# Run this step even if previous steps fails (there are changes to commit)
# but skip when on forks
if: ${{ !cancelled() && github.repository_owner == 'runatlantis' }}
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,24 +193,24 @@ You can check the status of the certificate in the Google Cloud Console.
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_cloudinit"></a> [cloudinit](#requirement\_cloudinit) | >=2.2.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >=4.79.0 |
| <a name="requirement_google"></a> [google](#requirement\_google) | >=6.9.0 |
| <a name="requirement_google-beta"></a> [google-beta](#requirement\_google-beta) | >=4.79.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >=3.4.3 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_cloudinit"></a> [cloudinit](#provider\_cloudinit) | >=2.2.0 |
| <a name="provider_google"></a> [google](#provider\_google) | >=4.79.0 |
| <a name="provider_google-beta"></a> [google-beta](#provider\_google-beta) | >=4.79.0 |
| <a name="provider_random"></a> [random](#provider\_random) | >=3.4.3 |
| <a name="provider_cloudinit"></a> [cloudinit](#provider\_cloudinit) | 2.3.4 |
| <a name="provider_google"></a> [google](#provider\_google) | 5.38.0 |
| <a name="provider_google-beta"></a> [google-beta](#provider\_google-beta) | 5.38.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_container"></a> [container](#module\_container) | terraform-google-modules/container-vm/google | 3.1.1 |
| <a name="module_container"></a> [container](#module\_container) | terraform-google-modules/container-vm/google | ~> 3.2 |

## Resources

Expand Down Expand Up @@ -265,6 +265,7 @@ You can check the status of the certificate in the Google Cloud Console.
| <a name="input_name"></a> [name](#input\_name) | Custom name that's used during resource creation | `string` | n/a | yes |
| <a name="input_network"></a> [network](#input\_network) | Name of the network | `string` | n/a | yes |
| <a name="input_persistent_disk_size_gb"></a> [persistent\_disk\_size\_gb](#input\_persistent\_disk\_size\_gb) | The size of the persistent disk that Atlantis uses to store its data on | `number` | `50` | no |
| <a name="input_persistent_disk_type"></a> [persistent\_disk\_type](#input\_persistent\_disk\_type) | The type of persistent disk that Atlantis uses to store its data on | `string` | `"pd-ssd"` | no |
| <a name="input_project"></a> [project](#input\_project) | The ID of the project in which the resource belongs | `string` | `null` | no |
| <a name="input_region"></a> [region](#input\_region) | The region that resources should be created in | `string` | n/a | yes |
| <a name="input_service_account"></a> [service\_account](#input\_service\_account) | Service account to attach to the instance running Atlantis | <pre>object({<br> email = string,<br> scopes = list(string)<br> })</pre> | <pre>{<br> "email": "",<br> "scopes": [<br> "cloud-platform"<br> ]<br>}</pre> | no |
Expand Down
7 changes: 4 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
locals {

# The default port that Atlantis runs on is 4141, we default to this.
atlantis_port = lookup(var.env_vars, "ATLANTIS_PORT", 4141)
# Atlantis' home directory is "/home/atlantis", we default to this.
Expand Down Expand Up @@ -79,7 +80,7 @@ data "cloudinit_config" "config" {

module "container" {
source = "terraform-google-modules/container-vm/google"
version = "3.2.0"
version = "~> 3.2"

container = {
image = var.image
Expand Down Expand Up @@ -218,7 +219,7 @@ resource "google_compute_instance_template" "default" {

resource "google_compute_disk" "persistent" {
name = var.name
type = "pd-ssd"
type = var.persistent_disk_type
size = var.persistent_disk_size_gb
zone = var.zone
labels = merge(
Expand Down Expand Up @@ -382,7 +383,7 @@ resource "google_compute_backend_service" "iap" {
}

iap {
enabled = var.iap.enabled
enabled = true
oauth2_client_id = var.iap.oauth2_client_id
oauth2_client_secret = var.iap.oauth2_client_secret
}
Expand Down
7 changes: 6 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ variable "enable_oslogin" {

variable "iap" {
type = object({
enabled = bool
oauth2_client_id = string
oauth2_client_secret = string
})
Expand Down Expand Up @@ -234,3 +233,9 @@ variable "shared_vpc" {
})
default = null
}

variable "persistent_disk_type" {
type = string
description = "The type of persistent disk that Atlantis uses to store its data on"
default = "pd-ssd"
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">=4.79.0"
version = ">=6.9.0"
}
google-beta = {
source = "hashicorp/google-beta"
Expand Down

0 comments on commit c9bcfb9

Please sign in to comment.