-
Notifications
You must be signed in to change notification settings - Fork 0
gcp infra as terraform #1
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
0c28379
to
86f5d61
Compare
decrypt-state-and-keys.sh
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
encrypt-state-and-keys.sh
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instance_name = "epoc-${var.environment}-database" | ||
private_network_name = "epoc-${var.environment}-private-network" | ||
private_ip_name = "epoc-${var.environment}-private-ip" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
backup_configuration { | ||
backup_retention_settings { | ||
retained_backups = 7 | ||
retention_unit = "COUNT" | ||
} | ||
|
||
start_time = "16:00" | ||
transaction_log_retention_days = 7 | ||
} |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sama homma ku yllä
5b98503
to
1c70d5a
Compare
No description provided.