heptio / aws-quickstart

AWS Kubernetes cluster via CloudFormation and kubeadm
Apache License 2.0
223 stars 134 forks source link

Problem creating a CFN stack... #149

Open gmflau opened 6 years ago

gmflau commented 6 years ago

I was following your instructions on README.md to deploy a K8 cluster. Here is what I passed to the CLI command:

$ aws cloudformation create-stack --region us-west-2 --stack-name Heptio-Kubernetes-GML --template-url https://quickstart-reference.s3.amazonaws.com/heptio/latest/templates/kubernetes-cluster-with-new-vpc.template --parameters ParameterKey=AvailabilityZone,ParameterValue=us-west-2a ParameterKey=KeyName,ParameterValue=dse-keypair-us-west-2 ParameterKey=AdminIngressLocation,ParameterValue=0.0.0.0/0 --capabilities=CAPABILITY_IAM

The error I received below: 10:48:46 UTC-0800 ROLLBACK_IN_PROGRESS AWS::CloudFormation::Stack Heptio-Kubernetes-GML The following resource(s) failed to create: [NATGateway, K8sStack]. . Rollback requested by user.
  10:48:46 UTC-0800 CREATE_FAILED AWS::EC2::NatGateway NATGateway Resource creation cancelled
  10:48:45 UTC-0800 CREATE_FAILED AWS::CloudFormation::Stack K8sStack Embedded stack arn:aws:cloudformation:us-west-2:819041172558:stack/Heptio-Kubernetes-GML-K8sStack-7LWHAFF3E68K/d5fa4490-0912-11e8-842f-50a68a20122a was not successfully created: The following resource(s) failed to create: [LambdaExecutionRole, ClusterSecGroup, KubernetesLogGroup, ClusterInfoBucket].

When I used your AWS QuickStart here - https://aws.amazon.com/quickstart/architecture/heptio-kubernetes/ , I needed to provide my "IAM Role" under Permission on the form. If not, I would be receiving the same error above. I suspect that I need to pass my "IAM Role" to the "aws cloudformation create-stack" CLI command. I will greatly appreciate if you could find out how.

Thanks, Gilbert

detiber commented 6 years ago

@gmflau My apologies for taking so long to respond to this issue. To assume a role with the aws command line utility you can follow these instructions.

timothysc commented 5 years ago

Closing, both old and possible via the instructions listed above.