Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
main.tf
variables.tf

README.md

Bootstrap Module

This Terraform module manages AWS resources only needed during cluster bootstrapping. It uses implicit provider inheritance to access the AWS provider.

Example

Set up a main.tf with:

provider "aws" {
  region = "us-east-1"
}

resource "aws_vpc" "example" {
  cidr_block           = "10.0.0.0/16"
  enable_dns_hostnames = true
  enable_dns_support   = true
}

resource "aws_subnet" "example" {
  vpc_id     = "${aws_vpc.example.id}"
  cidr_block = "${aws_vpc.example.cidr_block}"
}

module "bootstrap" {
  source = "github.com/openshift/installer//data/data/aws/bootstrap"

  ami            = "ami-0af8953af3ec06b7c"
  cluster_id     = "my-cluster"
  ignition       = "{\"ignition\": {\"version\": \"2.2.0\"}}",
  subnet_id      = "${aws_subnet.example.id}"
  vpc_id         = "${aws_vpc.example.id}"
}

Then run:

$ terraform init
$ terraform plan
You can’t perform that action at this time.