Skip to content

Commit

Permalink
feat: update Terraform to deploy to VendorCorp EKS
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <[email protected]>
  • Loading branch information
madpah committed Jul 10, 2024
1 parent 03d8100 commit 96bb2fa
Show file tree
Hide file tree
Showing 6 changed files with 304 additions and 398 deletions.
38 changes: 38 additions & 0 deletions backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Copyright (c) 2021-present Sonatype, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

terraform {
backend "s3" {
bucket = "vendorcorp-platform-core"
key = "terraform-state/the-cla"
dynamodb_table = "vendorcorp-terraform-state-lock"
region = "us-east-2"
}
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.6.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.19.0"
}
postgresql = {
source = "cyrilgdn/postgresql"
version = ">= 1.15.0"
}
}
}
20 changes: 20 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Copyright (c) 2021-present Sonatype, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

locals {
cla_db_username = "the_cla_bot"
cla_db_name = "the_cla"
}
Loading

0 comments on commit 96bb2fa

Please sign in to comment.