DoubleCloud AWS Bring Your Own Cloud terraform module

Terraform module which creates AWS resources to bring them into DoubleCloud.

Usage

module "byoc" {
  source = "doublecloud/doublecloud-byoc/aws"

  ipv4_cidr = "196.168.42.0/24"
}

resource "doublecloud_network" "aws" {
  project_id = var.project_id
  name = "my-aws-network"
  region_id  = module.byoc.region_id
  cloud_type = "aws"
  aws = {
    vpc_id       = module.byoc.vpc_id
    account_id   = module.byoc.account_id
    iam_role_arn = module.byoc.iam_role_arn
  }
}

Requirements

Name Version
terraform >= 1.2.6
aws >= 4.51.0
time >= 0.9.1

Providers

Name Version
aws >= 4.51.0
time >= 0.9.1

Modules

No modules.

Resources

Name Type
aws_iam_policy.doublecloud resource
aws_iam_role.doublecloud resource
aws_vpc.doublecloud resource
time_sleep.sleep_to_avoid_iam_race resource
aws_caller_identity.self data source
aws_iam_policy_document.doublecloud_permissions data source
aws_iam_policy_document.trusted_policy data source
aws_region.current data source

Inputs

Name Description Type Default Required
doublecloud_controlplane_account_id leave as default string "883433064081" no
ipv4_cidr Valid IPv4 CIDR block for VPC string "10.10.0.0/16" no

Outputs

Name Description
account_id AWS Account ID where resources will be created.
iam_role_arn ARN of the IAM Role that has permissions to create resources in the VPC.
region_id AWS Region where resources will be created.
vpc_id ID of the created VPC. DoubleCloud resources will be created in this VPC.