We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CfnParameter
Let's say that I have this function
func CreateCluster(stack constructs.Construct, instanceType awscdk.CfnParameter) eks.Cluster { cluster := awseks.NewCluster(stack, jsii.String("my-cluster"), &awseks.ClusterProps{ ... }) cluster.AddNodegroupCapacity(jsii.String("my-nodegroup"), &eks.NodegroupOptions{ InstanceTypes: &[]ec2.InstanceType{ ec2.NewInstanceType(instanceType.ValueAsString()), } }) }
where I want to pass in a cdk parameter.
Doing the above breaks in weird ways:
panic: Error: Malformed instance type identifier goroutine 1 [running]:
Doing a
fmt.Printf("Instance type: %v\n", instanceType.ValueAsString())
shows that the value at buildtime is actually just a node as a string:
Instance type: ${Token[TOKEN.652]}
What am I missing here? I expected ValueAsString() to just work ™️
ValueAsString()
Having an example of using ValueAsString() would be really useful for passing parameters to Go cdk stacks.
No response
Go
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature
Let's say that I have this function
where I want to pass in a cdk parameter.
Doing the above breaks in weird ways:
Doing a
shows that the value at buildtime is actually just a node as a string:
What am I missing here? I expected
ValueAsString()
to just work ™️Use Case
Having an example of using
ValueAsString()
would be really useful for passing parameters to Go cdk stacks.Proposed Solution
No response
Other Information
No response
Acknowledgements
Language
Go
The text was updated successfully, but these errors were encountered: