-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EKS: No AMI for Kubernetes 1.13 or Unable to determine AMI from AMI map since stack is region-agnostic #3120
Comments
Related to #2922. Found a solution, pass region thru env variable Overload the super constructor call with |
You can also use the DeploymentStack(
app=app,
id='Dev',
env={
'account': os.environ['CDK_DEFAULT_ACCOUNT'],
'region': os.environ['CDK_DEFAULT_REGION']
}
) |
It sounds like, 'CDK_DEFAULT_REGION' depends on 'AWS_DEFAULT_REGION'. For example, const stack = new GoEksStack(app, 'GoEksStack', { If I neither config credential or AWS_DEFAULT_REGION, run "cdk synth", then showed "Unable to determine AMI from AMI map since stack is region-agnostic" . It'll be fixed once set up 'AWS_DEFAULT_REGION'. |
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
exits with jsii.errors.JSIIError: Unable to determine AMI from AMI map since stack is region-agnostic
if you add a version to EKS, say
eks_cluster = aws_eks.Cluster(scope=self, id='EksCluster', vpc=vpc, version='1.13')
exits with jsii.errors.JSIIError: We don't have an AMI for kubernetes version 1.12
What is the expected behavior (or behavior of feature suggested)?
Program compiles and outputs a valid template
What is the motivation / use case for changing the behavior or adding this feature?
Whole EKS service is completely disabled in 0.36
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: