When creating a AWS::ECS::Service inside the Cloudformation templates, I require a networkconfiguration to be filled in, otherwise the stack creation does not start. According to the networkconfiguration documentation, this can and should be an AwsVpcConfiguration.
I did this and tried to run the following template snippet:
Type: 'AWS::ECS::Service'
Properties:
Cluster: !Ref MyCluster
DesiredCount: 1
LaunchType: 'FARGATE'
NetworkConfiguration:
AwsvpcConfiguration:
AssignPublicIp: 'ENABLED'
Subnets:
- !Ref MySubnet
When I run this stack, the error returned is:
Encountered unsupported property AwsVpcConfiguration
So I can't make any stack without this option but the stack itself tells me the option is illegal. What can I do about this?