Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

gcp infra as terraform #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

gcp infra as terraform #1

wants to merge 1 commit into from

Conversation

miikahyttinen
Copy link

No description provided.

Copy link

@LeadingMoominExpert LeadingMoominExpert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mites noi cloud runit? Nekin olis hyvä saada terraformin piiriin niin voi säätää cpu:n ja ramin sovelluksen vaatimusten mukaan

epoc-gcp-infra.tf Outdated Show resolved Hide resolved
Comment on lines 1 to 3
for filename in $( find . -name "*.gpg" ); do \
gpg -q --batch --yes --decrypt-files --passphrase=$(gopass show 3/epoc/GPG) $filename; \
done

for filename in $( find ./infra -name "*.gpg" ); do \
gpg -q --batch --yes --decrypt-files --passphrase=$(gopass show 3/epoc/GPG) $filename; \
done

for filename in $( find ./secrets -name "*.gpg" ); do \
gpg -q --batch --yes --decrypt-files --passphrase=$(gopass show 3/epoc/GPG) $filename; \
done

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for filename in $( find . -name "*.gpg" ); do \
gpg -q --batch --yes --decrypt-files --passphrase=$(gopass show 3/epoc/GPG) $filename; \
done
for filename in $( find ./infra -name "*.gpg" ); do \
gpg -q --batch --yes --decrypt-files --passphrase=$(gopass show 3/epoc/GPG) $filename; \
done
for filename in $( find ./secrets -name "*.gpg" ); do \
gpg -q --batch --yes --decrypt-files --passphrase=$(gopass show 3/epoc/GPG) $filename; \
done
for filename in $(find . -name '*.gpg'); do \
gpg -q --batch --yes --decrypt-files --passphrase=$(gopass show 3/epoc/GPG) $filename; \
done

Comment on lines 1 to 7
for filename in $( find ./* -name "*.json" ); do \
gpg --batch --yes --symmetric --passphrase $(gopass show 3/epoc/GPG) --cipher-algo AES-256 $filename; \
done

for filename in $( find ./secrets -name "*.tfstate" ); do \
gpg --batch --yes --symmetric --passphrase $(gopass show 3/epoc/GPG) --cipher-algo AES-256 $filename; \
done

for filename in $( find ./infra -name "*.tfstate" ); do \
gpg --batch --yes --symmetric --passphrase $(gopass show 3/epoc/GPG) --cipher-algo AES-256 $filename; \
done

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for filename in $( find ./* -name "*.json" ); do \
gpg --batch --yes --symmetric --passphrase $(gopass show 3/epoc/GPG) --cipher-algo AES-256 $filename; \
done
for filename in $( find ./secrets -name "*.tfstate" ); do \
gpg --batch --yes --symmetric --passphrase $(gopass show 3/epoc/GPG) --cipher-algo AES-256 $filename; \
done
for filename in $( find ./infra -name "*.tfstate" ); do \
gpg --batch --yes --symmetric --passphrase $(gopass show 3/epoc/GPG) --cipher-algo AES-256 $filename; \
done
for filename in $(find . -regex '\(.*.json\|.*.tfstate\)'); do \
gpg --batch --yes --symmetric --passphrase $(gopass show 3/epoc/GPG) --cipher-algo AES-256 $filename; \
done

README.md Outdated
Comment on lines 47 to 51




Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment on lines +6 to +8
instance_name = "epoc-${var.environment}-database"
private_network_name = "epoc-${var.environment}-private-network"
private_ip_name = "epoc-${var.environment}-private-ip"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Näiden resurssien nimien vaihtaminen on ehkä tarpeetonta. Riittää et toi projekti on eri

# Create serverless vpc connector to connect db
resource "google_vpc_access_connector" "connector" {
provider = google
name = "epoc-${var.environment}-vpc-connector"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sama ku yllä epoc-vpc-connector nimi sopii molempiin ympäristöihin

Comment on lines +83 to +91
backup_configuration {
backup_retention_settings {
retained_backups = 7
retention_unit = "COUNT"
}

start_time = "16:00"
transaction_log_retention_days = 7
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tän vois tehä vaan tuotannolle

}
location = local.region
project = local.project
repository_id = "epoc-${var.environment}-container-repository"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sama homma ku yllä

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

Successfully merging this pull request may close these issues.

None yet

2 participants