This repository has been archived by the owner on Jan 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2324fb5
commit d215888
Showing
7 changed files
with
282 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ | |
.terraform/ | ||
.idea | ||
terraform-aws-kops-metadata.iml | ||
|
||
.build-harness | ||
build-harness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
SHELL := /bin/bash | ||
|
||
# List of targets the `readme` target should call before generating the readme | ||
export README_DEPS ?= docs/targets.md docs/terraform.md | ||
|
||
-include $(shell curl -sSL -o .build-harness "https://git.io/build-harness"; echo .build-harness) | ||
|
||
## Lint terraform code | ||
lint: | ||
$(SELF) terraform/install terraform/get-modules terraform/get-plugins terraform/lint terraform/validate | ||
$(SELF) terraform/install terraform/get-modules terraform/get-plugins terraform/lint terraform/validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
# | ||
# This is the canonical configuration for the `README.md` | ||
# Run `make readme` to rebuild the `README.md` | ||
# | ||
|
||
# Name of this project | ||
name: terraform-aws-kops-metadata | ||
|
||
# Logo for this project | ||
#logo: docs/logo.png | ||
|
||
# License of this project | ||
license: "APACHE2" | ||
|
||
# Canonical GitHub repo | ||
github_repo: cloudposse/terraform-aws-kops-metadata | ||
|
||
# Badges to display | ||
badges: | ||
- name: "Build Status" | ||
image: "https://travis-ci.org/cloudposse/terraform-aws-kops-metadata.svg?branch=master" | ||
url: "https://travis-ci.org/cloudposse/terraform-aws-kops-metadata" | ||
- name: "Latest Release" | ||
image: "https://img.shields.io/github/release/cloudposse/terraform-aws-kops-metadata.svg" | ||
url: "https://github.com/cloudposse/terraform-aws-kops-metadata/releases/latest" | ||
- name: "Slack Community" | ||
image: "https://slack.cloudposse.com/badge.svg" | ||
url: "https://slack.cloudposse.com" | ||
|
||
related: | ||
- name: "terraform-aws-kops-external-dns" | ||
description: "Terraform module to provision an IAM role for external-dns running in a Kops cluster, and attach an IAM policy to the role with permissions to modify Route53 record sets" | ||
url: "https://github.com/cloudposse/terraform-aws-kops-external-dns" | ||
- name: "terraform-aws-kops-ecr" | ||
description: "Terraform module to provision an ECR repository and grant users and kubernetes nodes access to it." | ||
url: "https://github.com/cloudposse/terraform-aws-kops-ecr" | ||
- name: "terraform-aws-kops-state-backend" | ||
description: "Easily bootstrap kops clusters (DNS & S3 Bucket)" | ||
url: "https://github.com/cloudposse/terraform-aws-kops-state-backend" | ||
- name: "terraform-aws-kops-vpc-peering" | ||
description: "Terraform module to create a peering connection between a backing services VPC and a VPC created by Kops" | ||
url: "https://github.com/cloudposse/terraform-aws-kops-vpc-peering" | ||
- name: "terraform-aws-kops-route53" | ||
description: "Terraform module to lookup the IAM role associated with `kops` masters, and attach an IAM policy to the role with permissions to modify Route53 record sets" | ||
url: "https://github.com/cloudposse/terraform-aws-kops-route53" | ||
- name: "terraform-aws-kops-vault-backend" | ||
description: "Terraform module to provision an S3 bucket for HashiCorp Vault secrets storage, and an IAM role and policy with permissions for Kops nodes to access the bucket" | ||
url: "https://github.com/cloudposse/terraform-aws-kops-vault-backend" | ||
- name: "terraform-aws-kops-chart-repo" | ||
description: "Terraform module to provision an S3 bucket for Helm chart repository, and an IAM role and policy with permissions for Kops nodes to access the bucket" | ||
url: "https://github.com/cloudposse/terraform-aws-kops-chart-repo" | ||
|
||
# Short description of this project | ||
description: |- | ||
Terraform module to lookup resources within a [Kops](https://github.com/kubernetes/kops) cluster | ||
# How to use this project | ||
usage: |- | ||
```hcl | ||
module "kops_metadata" { | ||
source = "git::https://github.com/cloudposse/terraform-aws-kops-metadata.git?ref=master" | ||
dns_zone = "cluster.domain.com" | ||
bastion_name = "bastion" | ||
masters_name = "masters" | ||
nodes_name = "nodes" | ||
} | ||
``` | ||
include: | ||
- "docs/targets.md" | ||
- "docs/terraform.md" | ||
|
||
# Contributors to this project | ||
contributors: | ||
- name: "Andriy Knysh" | ||
github: "aknysh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Makefile Targets | ||
``` | ||
Available targets: | ||
help This help screen | ||
help/all Display help for all targets | ||
lint Lint terraform code | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|:----:|:-----:|:-----:| | ||
| bastion_name | Bastion server subdomain name in the Kops DNS zone | string | `bastion` | no | | ||
| dns_zone | Name of the Kops DNS zone | string | - | yes | | ||
| enabled | Set to false to prevent the module from creating or accessing any resources | string | `true` | no | | ||
| masters_name | K8s masters subdomain name in the Kops DNS zone | string | `masters` | no | | ||
| nodes_name | K8s nodes subdomain name in the Kops DNS zone | string | `nodes` | no | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| bastion_security_group_arn | Bastion server Security Group ARN | | ||
| bastion_security_group_id | Bastion server Security Group ID | | ||
| masters_role_arn | K8s nodes Security Group ID | | ||
| masters_role_name | K8s nodes Security Group ARN | | ||
| masters_security_group_arn | K8s masters Security Group ARN | | ||
| masters_security_group_id | K8s masters Security Group ID | | ||
| nodes_role_arn | Kops nodes Role ARN | | ||
| nodes_role_name | Kops nodes Role name | | ||
| nodes_security_group_arn | Kops masters Role name | | ||
| nodes_security_group_id | Kops masters Role ARN | | ||
| private_subnet_ids | Private subnets IDs in the VPC | | ||
| utility_subnet_ids | Utility submets IDs in the VPC | | ||
| vpc_id | Kops VPC ID | | ||
|
Oops, something went wrong.