forked from akeylesstyree/akeyless-dba-workflow-tf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
52 lines (45 loc) · 1.09 KB
/
main.tf
File metadata and controls
52 lines (45 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
terraform {
# cloud {
# organization = "work-demos"
# workspaces {
# name = "akeyless-dba-workflow-tf"
# }
# }
# You can change this backend to be whatever you like.
backend "gcs" {
bucket = "customer-success-391112-terraform-state-bucket"
prefix = "terraform/state/dba-example"
}
required_providers {
akeyless = {
version = ">= 1.0.0"
source = "akeyless-community/akeyless"
}
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
# provider "akeyless" {
# api_gateway_address = "https://api.akeyless.io"
# jwt_login {
# access_id = var.AKEYLESS_ACCESS_ID
# }
# }
# Configure the AWS Provider
provider "aws" {
region = "us-east-1"
}
# Make a aws mysql instance
resource "aws_db_instance" "default" {
allocated_storage = 10
db_name = "mydb"
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t3.micro"
username = "foo"
password = "foobarbaz"
parameter_group_name = "default.mysql5.7"
skip_final_snapshot = true
}