You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an issue trying to dynamically set the EC2's InstancTypes per environment using .ebextensions.
I have tried multiple configurations and this Stack Overflow article has a good break down of the problem with more detailed examples and some troubleshooting provided as well.
working yaml example (hard coded):
option_settings:
aws:ec2:instances:
InstanceTypes: t3.small # <-- hard coded works.
ERROR Not a comma-separated string or array: '{"Fn::GetOptionSetting":{"Namespace":"aws:elasticbeanstalk:application:environment","OptionName":"ENV_INSTANCE_TYPE"}}'
I also tried:
using custom resources.
using 't3.small,t3.medium' and splitting that into 2 separate variables for the env var.
using various attempts of joining/splitting the string in conjunction with the Fn::GetOptionSetting.
I do not see any issues referenced in the following documentation stating this should be an issue:
@0xab01 are you able to provide details/documentation for official sources as to what this is for / how it works / how it fixes this issue? I appreciate your input here, but blindly downloading and executing programs with no context/vetting would not be a viable solution.
Hello,
I am having an issue trying to dynamically set the EC2's InstancTypes per environment using .ebextensions.
I have tried multiple configurations and this Stack Overflow article has a good break down of the problem with more detailed examples and some troubleshooting provided as well.
working yaml example (hard coded):
example environment variable yaml used:
failing yaml example (using getOptionSetting fn)
returns error:
I also tried:
I do not see any issues referenced in the following documentation stating this should be an issue:
Is there something I am missing or is this not possible?
Any help with this would be greatly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: