Skip to content

GitHub repository used to store infrastructure code related auction-vesting-interface application.

Notifications You must be signed in to change notification settings

voltfinance/volt-vesting-management-devops

Repository files navigation

auction-vesting-interface - Management - DevOps

GitHub repository used to store infrastructure code related to auction-vesting-interface application.

Initialization

In order to separate environments it was decided using workspaces.

Initial Components

  • AWS S3 bucket for TF state
  • {environment}.hcl file with backend configuration (AWS S3 bucket, key, region)

How to use


Initial setup (step by step)

  1. Backend configuration:

    terraform init -backend-config=backend/{environment}.hcl

    where environment is production

  2. Workspace creation and selection:

    NOTE: When a workspace is created S3 automatically creates env/{environment} directory for tfstate

    terraform workspace new {environment}
  3. Terraform plan:

    terraform plan -var-file=tfvars/{environment}.tfvars -out=terraform.tfplan
  4. Terraform apply:

    terraform apply "terraform.tfplan"
  5. After creating resources create new workspace:

    terraform workspace new {environment}
  6. Repeat steps 1, 3 and 4


NOTE: When you need change workspace please do:

terraform workspace select {environment}

Documentation

To document the Terraform resources used the CLI tool terraform-docs. After each Terraform code update please use the terraform-docs.sh file:

bash terraform-docs.sh

or

./terraform-docs.sh

Requirements

Name Version
terraform 1.8.5
aws 5.35.0

Providers

Name Version
aws 5.35.0
aws.cloudfront 5.35.0
aws.dns 5.35.0

Modules

No modules.

Resources

Name Type
aws_acm_certificate.this resource
aws_acm_certificate_validation.this resource
aws_cloudfront_distribution.this resource
aws_cloudwatch_log_group.this resource
aws_codebuild_project.this resource
aws_codepipeline.this resource
aws_iam_policy.codebuild_policy resource
aws_iam_policy.codepipeline_policy resource
aws_iam_role.codebuild resource
aws_iam_role.codepipeline resource
aws_iam_role_policy_attachment.codebuild_policy resource
aws_iam_role_policy_attachment.codepipeline_policy resource
aws_route53_record.a resource
aws_route53_record.caa resource
aws_route53_record.dns_validation resource
aws_s3_bucket.codepipeline_artifacts resource
aws_s3_bucket.this resource
aws_s3_bucket_ownership_controls.codepipeline_artifacts resource
aws_s3_bucket_ownership_controls.this resource
aws_s3_bucket_policy.codepipeline_artifacts resource
aws_s3_bucket_policy.this resource
aws_s3_bucket_public_access_block.codepipeline_artifacts resource
aws_s3_bucket_public_access_block.this resource
aws_s3_bucket_website_configuration.this resource
aws_codestarconnections_connection.selected data source
aws_iam_policy_document.codebuild_policy data source
aws_iam_policy_document.codebuild_role data source
aws_iam_policy_document.codepipeline_artifacts data source
aws_iam_policy_document.codepipeline_policy data source
aws_iam_policy_document.codepipeline_role data source
aws_iam_policy_document.this data source
aws_region.current data source
aws_route53_zone.selected data source

Inputs

Name Description Type Default Required
aws_profile AWS - Profile string "563576219775" no
aws_region AWS - Region string "eu-central-1" no
default_tags AWS - Default tags map(any) n/a yes
domain Route53 - Domain string "voltage.finance" no
github_branch GitHub - Branch string n/a yes
name Global - Name string n/a yes
website Application - Website hostnames list(string) n/a yes

Outputs

No outputs.

About

GitHub repository used to store infrastructure code related auction-vesting-interface application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published