2.0.0 (2020-10-11)
Bug Fixes
- CI: fix broken GitHub PR integration (#185) (d42d00a)
- CI: only run semantic-release on push-to-master (not on pull requests) (#184) (c83945a)
- CI: speed up PR builds by only downloading the cfn spec and regenerating resources on cron schedule (not on every build) (7ae2a32)
- CI: Update TravisCI configuration based on https://github.com/se… (#180) (88e1e85)
- CI: Update TravisCI configuration for semantic-release to use jobs (f6c2fee)
- generator: update the generation making it easier to fix CF schema errors to generate (#285) (6751e5b)
- go: Ran
go mod tidy
(#233) (7914822) - intrinsics: change Fn::Sub to allow AWS pseudo parameters (#275) (5a48c27), closes #274 #202
- intrinsics: Join function to allow to use parameters of type
List<>
(#309) (6cc1cd3) - parser: do not break if a non-intrinsic
Condition
statement is found in a YAML template (#169) (e4671e3) - parser: fix invalid YAML template error for custom tag marshaler (#177) (035d438)
- parser: Select the correct AWS CloudFormation resource type based on similarity (#183) (5749b23)
- parser: Unmarshalling of resources with polymorphic properties (like S3 events) now works (#188) (8eff90a)
- schema: Add Change and Update policies to the Unmarshal method (#288) (989b05f)
- schema: AWS::Serverless::Api.MethodSettings should be a list (a1f340a), closes #242
- schema: AWS::Serverless::Function S3 notification filters (#249) (a50ef92), closes #74
- schema: AWS::Serverless:Api.Cors (#246) (62fd56a), closes #244
- schema: CloudFormation Updates (#320) (49879b4)
- schema: fixed incorrect field type for AWS::Serverless::Application.Location (#167) (3f1817b)
- schema: maps within YAML templates should allow unknown fields/properties (3b6e359)
- schema: Ordered cloudformation/all.go file (#238) (91254f3)
- schema: version attribute of Function::S3Location in SAM is optional (#226) (14b754c), closes /github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3 #87
- schema, parser: change Transform json schema to allow multiple macros (#268) (072fc74), closes #267
- spec: corrected AWS::Serverless::Api.Auth.Authorizers to be of type JSON rather than string (#164) (4cf1bee)
Features
-
CI: auto-generate AUTHORS.md file (b37af7b)
-
lib: Test feature (please ignore) (1df611a)
-
parser: Default to parsing as YAML unless the filename ends in .json (#176) (42e7146)
-
sam: Add support for
AWS::Serverless::Api.TracingEnabled
,AWS::Serverless::Function.PermissionsBoundary
,AWS::Serverless::Function.DynamoEvent.Enabled
,AWS::Serverless::Function.KinesisEvent.Enabled
, andAWS::Serverless::Function.SQSEvent.Enabled
(#191) (38f0187) -
schema: Add OpenApiVersion field to serverless Api (#281) (bccc71b)
-
schema: Add UpdateReplacePolicy to the templates and the policies so that it is generated for every resource (#272) (696c515)
-
schema: Added CloudWatch Logs event for SAM (#271) (fedb013)
-
schema: adding AWS::Serverless::StateMachine and FileSystemConfigs to Function (#284) (d2d23ca)
-
schema: AWS CloudFormation Update (2019-03-15) (#189) (8b332a4)
-
schema: AWS CloudFormation Update (2019-10-26) (#231) (63ca311)
-
schema: AWS CloudFormation Update (2019-10-29) (#239) (7ff8499)
-
schema: CloudFormation Updates (2019-12-09) (#251) (a23ba41)
-
schema: CloudFormation Updates (2020-01-30) (#263) (fda2d31)
-
schema: CloudFormation Updates (2020-02-13) (#266) (bc75922)
-
schema: CloudFormation Updates (2020-02-22) (#269) (ffd88a6)
-
schema: dummy commit - trigger CI for schema update (66bc344)
-
schema: regenerated resources to apply SAM schema fixes from previous PR (b30c019)
-
Added semantic-release CI setup (a9b368a)
-
Added semantic-release configuration file (3b25fdb)
-
Fix method conflicts (awslabs#245) (d0b0a8b), closes #245 #241 #294
-
Group CloudFormation resources by AWS service name (awslabs#234) (d0749e6), closes #234
Code Refactoring
BREAKING CHANGES
- This change refactors the DependsOn, Metadata, CreationPolicy,
UpdatePolicy and DeletionPolicy methods on each resource to a new
name. This is required, as some CloudFormation resources use these
keywords as properties (AWS::AppMesh::Route.GrpcRouteMatch has a
Metadata field for example), which causes a conflict.
resource.DependsOn()
method is refactored to resource.AWSCloudFormationDependsOn
field.
resource.SetDependsOn()
method is refactored to resource.AWSCloudFormationDependsOn
field.
resource.Metadata()
method is refactored to resource.AWSCloudFormationMetadata
field.
resource.SetMetadata()
method is refactored to resource.AWSCloudFormationMetadata
field.
resource.CreationPolicy()
method is refactored to resource.AWSCloudFormationCreationPolicy
field.
resource.SetCreationPolicy()
method is refactored to resource.AWSCloudFormationCreationPolicy
field.
resource.UpdatePolicy()
method is refactored to resource.AWSCloudFormationUpdatePolicy
field.
resource.SetUpdatePolicy()
method is refactored to resource.AWSCloudFormationUpdatePolicy
field.
resource.DeletionPolicy()
method is refactored to resource.AWSCloudFormationDeletionPolicy
field.
resource.SetDeletionPolicy()
method is refactored to resource.AWSCloudFormationDeletionPolicy
field.
- this change moves all Cloudformation resources to
packages based on the AWS service name. The main motivation for this is
that building goformation on some platforms (Windows) failed due to too
many files in the old cloudformation/resources package. This new package
style has a nice benefit of slightly nicer to use API, but is a breaking
change and will require refactoring existing codebases to update to v3.
Old usage:
import "github.com/awslabs/goformation/v2/cloudformation/resources"
... snip ...
topic := &resources.AWSSNSTopic{}
New usage:
import "github.com/awslabs/goformation/v3/cloudformation/sns"
...snip...
topic := &sns.Topic{}
Most tests are still failing at this point and need refactoring.
- fix(schema): Tag handling
Fixed tag handling for new grouped resources style (via new tags.Tag
struct).
- fix(schema): SAM specification
SAM Specification now generates nicely with new grouped resources
format. Also all tests are now passing \o/
- generator: this PR refactors the auto-generated CloudFormation resources out of the cloudformation package and into a dedicated package (resources). This helps keep the auto generated files separate from others.
E.g. cloudformation.AWSSnsTopic{} becomes resources.AWSSnsTopic{}