Comments (8)
I've hit the same problem with the "Essential" property of a container definition. Is there a suggested solution? I'm happy to implement a workaround if you point me how we should resolve this issue.
Shouldn't these kind of fields be pointers? That way it should work as users expect.
from goformation.
@deoxxa @neoandroid Can we probably close this as resolved, as @majasb has contributed fixes for booleans and numbers in #133?
from goformation.
Having similar problem:
Monitoring: &cloudformation.AWSEC2LaunchTemplate_Monitoring{
Enabled: false,
},
is rendered as following in yaml output
Monitoring: {}
from goformation.
I've had the same issue with the AWSLogsSubscriptionFilter
type. It has a parameter named FilterPattern
. In order to catch all events, you simply supply an empty string.
However, due to empty string being a null string in Go, the value is not included in the generated template.
from goformation.
ECS ContainerDefinition Essential
attribute is not required and of type boolean, but then omitempty
prevent to set value to false
. Issue with that is that the actual API default is true
: "If this parameter is omitted, a container is assumed to be essential.".
So there's no way to declare a non-essential containerdefinition
from goformation.
I think it's clear this library needs to transition to using pointers instead of values. It's causing a ton of rough edges. Unfortunately it may be a while before I have time to implement it, however if anyone else wants to have a go in the meantime i'll happily accept a PR.
from goformation.
@rubenfonseca if I am correct this would be solved in v6 looking on behaviour of my issue - #474
from goformation.
That's right! Thank you for pointing this our @xrn.
from goformation.
Related Issues (20)
- Provide more granular error messages to template parsing HOT 5
- Running into problem with !Ref values when parsing a CloudFormation YAML File
- Parsing CloudFormation Template with int/String values in YAML/JSON HOT 1
- Failing to parse/unmarshal bool attributes
- Schema claims AWS::Serverless::Api Models object is 'key : string' map HOT 1
- DBClusterParameterGroupName missing from DBClusterParameterGroup type HOT 2
- Support for AWS::Scheduler::Schedule HOT 1
- Vulnerability CVE-2022-3064 HOT 4
- MinValue and MaxValue from a parsed parameter are ambiguous HOT 3
- Support for FindInMap default HOT 1
- Intrinsic Function Long form to short form after new update HOT 6
- Intrinsics and Ref not working HOT 4
- FunctionUrlConfig not defined in SAM schema HOT 2
- AWS::Serverless::Api AlwaysDeploy not supported HOT 2
- Live AWS parameter resolution and generics support HOT 1
- Support UseOnlineResharding UpdatePolicy for ElastiCache ReplicationGroup HOT 1
- Parse fails when using a number as a Lambda environment value HOT 1
- Schema fails to validate Amazon AWS provided example.
- aws-serverless-function_sqsevent.go is missing fields
- Missing property ReplicationGroupId for AWS::ElastiCache::ReplicationGroup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goformation.