Skip to main content
Version: Next

SmoothGlue GitLab IaC

Overview

This project contains the IaC to deploy GitLab on a SmoothGlue k8s cluster.

Requirements

NameVersion
terraform>= 1.0
aws<= 5.22.0
local~> 2.4.0
postgresql~> 1.21.0
random~> 3.6.0
time~> 0.9.0

Providers

NameVersion
aws5.22.0
local2.4.1
postgresql1.21.0
random3.6.3
time0.9.2

Modules

NameSourceVersion
rdsterraform-aws-modules/rds/aws~> 6.2.0
rds_clusterterraform-aws-modules/rds-aurora/aws~> 7.0
s3terraform-aws-modules/s3-bucket/aws~> 3.0

Resources

NameType
aws_iam_policy.gitlab_bucketsresource
aws_iam_role_policy_attachment.gitlab_bucketsresource
aws_security_group.thisresource
aws_security_group_rule.cidr_blocks_ruleresource
aws_security_group_rule.source_sg_ruleresource
local_file.valuesresource
local_sensitive_file.secretsresource
postgresql_database.thisresource
postgresql_role.thisresource
random_password.db_master_passwordresource
random_password.thisresource
time_sleep.wait_for_rdsresource
aws_kms_key.aws_s3data source
aws_partition.currentdata source
aws_region.currentdata source

Inputs

NameDescriptionTypeDefaultRequired
allowed_cidr_blocksn/alist(string)[]no
allowed_security_groupsn/alist(string)[]no
block_public_accessIf true, a public access block will be created which disallows public access
to the bucket.
booltrueno
config_output_dirn/astring"."no
create_db_parameter_groupToggles the creation of a RDS Database Parameter Group on/offbooltrueno
db_parametersList of DB parameters to apply to the parameter grouplist(any)[]no
db_usernamen/astringnullno
logging_bucketn/astringnullno
nameThis name will be used as a prefix for all created resources.stringn/ayes
persistentn/aboolfalseno
rds_allocated_storageThe amount of RDS storage to provision in gigabytes.numbernullno
rds_backup_retention_periodn/anumber14no
rds_engine_versionn/astring"16"no
rds_instance_classn/astringnullno
rds_iopsThe number of I/O operations per second to allocate to RDS storage.numbernullno
rds_multi_azWhen creating a single RDS instance, allows creating a 2nd AZ warm
standby instance.
boolnullno
rds_multi_az_clusterDetermines whether this module creates a single RDS instance
(potentially with a 2nd AZ warm standby) or a multi-AZ cluster
supporting 3 AZs.
boolfalseno
rds_storage_typeThe EBS storage type to use for RDS storage.stringnullno
rolesIAM Roles to allow access to S3 resourceslist(string)[]no
s3_kms_key_idn/astringnullno
secrets_filenamen/astring"bigbang-secrets-gitlab.yaml"no
subnet_idsn/alist(string)n/ayes
tagsn/amap(any)&#x7b;&#x7d;no
values_filenamen/astring"bigbang-values-gitlab.yaml"no
vpc_idn/astringnullno

Outputs

NameDescription
bigbang_secrets_gitlabn/a
bigbang_values_gitlabn/a
gitlab_db_hostnamen/a
gitlab_db_master_passwordn/a
gitlab_db_master_usernamen/a
gitlab_db_namen/a
gitlab_db_passwordn/a
gitlab_db_portn/a
gitlab_db_usernamen/a