tree: 0b780117e170793216a51d29dbf369ebc6a15a92 [path history] [tgz]
  1. alb-main.tf
  2. alb-output.tf
  3. aws-main.tf
  4. bastion-main.tf
  5. bastion-output.tf
  6. ec2-main.tf
  7. key-pair-main.tf
  8. key-pair-output.tf
  9. rds-postgresql-main.tf
  10. rds-postgresql-output.tf
  11. README.md
  12. skywalking-oap-main.tf
  13. skywalking-oap-output.tf
  14. skywalking-ui-main.tf
  15. skywalking-ui-output.tf
  16. system-main.tf
  17. variables.tf
  18. vpc.tf
aws/README.md

Requirements

No requirements.

Providers

NameVersion
aws5.10.0
local2.4.0
random3.5.1
tls4.0.4

Modules

NameSourceVersion
albterraform-aws-modules/alb/aws~> 8.0
rdsterraform-aws-modules/rds/aws~> 5.0
vpcterraform-aws-modules/vpc/aws~> 5.0

Resources

NameType
aws_instance.bastionresource
aws_instance.skywalking-oapresource
aws_instance.skywalking-uiresource
aws_key_pair.ssh-userresource
aws_security_group.allow_appsresource
aws_security_group.bastionresource
aws_security_group.public-egress-accessresource
aws_security_group.skywalking-oapresource
aws_security_group.skywalking-uiresource
local_file.inventoriesresource
local_file.ssh-userresource
random_password.rds_passwordresource
tls_private_key.ssh-userresource
aws_ami.amazon-linuxdata source
aws_availability_zones.availabledata source

Inputs

NameDescriptionTypeDefaultRequired
access_keyAccess key of the AWS account, if you have configured AWS CLI, you can leave it empty.string""no
bastion_enabledEnable bastion host, if you want to access the instances via SSH, you must enable it.booltrueno
bastion_instance_typeCPU, memory, storage and networking capacity for bastion hoststring"t2.micro"no
cidrCIDR for database tierstring"11.0.0.0/16"no
cluster_nameName of the clusterstring"skywalking-cluster"no
database_subnetsCIDR used for database subnetsset(string)[
“11.0.104.0/24”,
“11.0.105.0/24”,
“11.0.106.0/24”
]
no
db_instance_classInstance class for the databasestring"db.t3.medium"no
db_max_storage_sizeMaximum storage size for the database, in GBnumber100no
db_nameName of the databasestring"skywalking"no
db_passwordPassword for the database, if not set, a random password will be generated.stringnullno
db_storage_sizeStorage size for the database, in GBnumber5no
db_usernameUsername for the databasestring"skywalking"no
extra_tagsAdditional tags to be added to all resourcesmap(string){}no
instance_typeCPU, memory, storage and networking capacity for OAP and UI instancesstring"t2.medium"no
oap_instance_countNumber of OAP instances, if you want to use H2 storage, you must set it to 1.number1no
private_subnetsCIDR used for private subnetsset(string)[
“11.0.1.0/24”,
“11.0.2.0/24”,
“11.0.3.0/24”
]
no
public_key_pathPath to store the key file for SSH access to the instances.string"~/.ssh"no
public_subnetsCIDR used for public subnetsset(string)[
“11.0.101.0/24”,
“11.0.102.0/24”,
“11.0.103.0/24”
]
no
regionPhysical location for clustered data centers.string"us-east-1"no
secret_keySecret key of the AWS account, if you have configured AWS CLI, you can leave it empty.string""no
storageStorage type for SkyWalking OAP, can be ‘h2’, or ‘rds-postgresql’string"rds-postgresql"no
ui_instance_countNumber of UI instancesnumber1no

Outputs

NameDescription
alb_dns_nameThe domain name of the ALB that can be used to access SkyWalking UI.
bastion_ipsThe public IP that can be used to SSH into the bastion host.
database_addressThe database address
database_nameThe database name
database_passwordThe database password
database_portThe database port
database_usernameThe database username
skywalking_oap_ipsThe private IPs of the OAP instances
skywalking_ui_ipsThe IPs of the SkyWalking UI instances
ssh-user-key-fileThe SSH key file that can be used to connect to the bastion instance.