Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Difficult to override defaults in shared AWS account #548

Open
@mpatters72

Description

@mpatters72

During upcoming training session we have 10+ people using the same AWS account.
A few simple changes could avoid name collisions.

Cloudformation templates:

  • Instruct people to add their name at the end of the StackName e.g. from k8s-workshop to k8s-workshop-myname
  • Add a parameter called 'EKS_CLUSTER_NAME', and set default to k8s-workshop, use this as cloudformation output. Either Instruct people to change name in the cloudformation e.g k8s-workshop-mike or let them use default
  • Also consider making the kops s3 bucket creation optional if people are working with EKS.
  • Consider calling a nested stack to just go ahead and create the EKS cluster as an option.

lab-ide-build.sh

  • Set EKS_CLUSTER_NAME to output from cloudformation stack as an exported environment variable.
  • Also consider setting AWS_DEFAULT_REGION to match region of cloudformation stack.

./create-kubeconfig.sh

  • Either use $EKS_CLUSTER_NAME, pass cluster name as variable, or use override if provided our fall back to hard-coded default.
  • Possibly echo that information out.

Various other places

  • update doc to use $EKS_CLUSTER_NAME variable

Other feedback

  • better separation of kops vs non-kops.
  • Separate troubleshooting stuff that might be needed when things go wrong from normal steps followed that are expected to work, eg. setting AZs in create-the-master-nodes

Cc @Cloudymind

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions