Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [2.0.0](v1.0.0...v2.0.0) (2020-06-19) ### Bug Fixes * **CI:** fix broken GitHub PR integration ([awslabs#185](https://github.com/parsnips/goformation/issues/185)) ([d42d00a](d42d00a)) * **CI:** only run semantic-release on push-to-master (not on pull requests) ([awslabs#184](https://github.com/parsnips/goformation/issues/184)) ([c83945a](c83945a)) * **CI:** speed up PR builds by only downloading the cfn spec and regenerating resources on cron schedule (not on every build) ([7ae2a32](7ae2a32)) * **CI:** Update TravisCI configuration based on https://github.com/se… ([awslabs#180](https://github.com/parsnips/goformation/issues/180)) ([88e1e85](88e1e85)) * **CI:** Update TravisCI configuration for semantic-release to use jobs ([f6c2fee](f6c2fee)) * **go:** Ran `go mod tidy` ([awslabs#233](https://github.com/parsnips/goformation/issues/233)) ([7914822](7914822)) * **intrinsics:** change Fn::Sub to allow AWS pseudo parameters ([awslabs#275](https://github.com/parsnips/goformation/issues/275)) ([5a48c27](5a48c27)), closes [awslabs#274](https://github.com/parsnips/goformation/issues/274) [awslabs#202](https://github.com/parsnips/goformation/issues/202) * **parser:** do not break if a non-intrinsic `Condition` statement is found in a YAML template ([awslabs#169](https://github.com/parsnips/goformation/issues/169)) ([e4671e3](e4671e3)) * **parser:** fix invalid YAML template error for custom tag marshaler ([awslabs#177](https://github.com/parsnips/goformation/issues/177)) ([035d438](035d438)) * **parser:** Select the correct AWS CloudFormation resource type based on similarity ([awslabs#183](https://github.com/parsnips/goformation/issues/183)) ([5749b23](5749b23)) * **parser:** Unmarshalling of resources with polymorphic properties (like S3 events) now works ([awslabs#188](https://github.com/parsnips/goformation/issues/188)) ([8eff90a](8eff90a)) * **schema:** AWS::Serverless::Api.MethodSettings should be a list ([a1f340a](a1f340a)), closes [awslabs#242](https://github.com/parsnips/goformation/issues/242) * **schema:** AWS::Serverless::Function S3 notification filters ([awslabs#249](https://github.com/parsnips/goformation/issues/249)) ([a50ef92](a50ef92)), closes [awslabs#74](https://github.com/parsnips/goformation/issues/74) * **schema:** AWS::Serverless:Api.Cors ([awslabs#246](https://github.com/parsnips/goformation/issues/246)) ([62fd56a](62fd56a)), closes [awslabs#244](https://github.com/parsnips/goformation/issues/244) * **schema:** fixed incorrect field type for AWS::Serverless::Application.Location ([awslabs#167](https://github.com/parsnips/goformation/issues/167)) ([3f1817b](3f1817b)) * **schema:** maps within YAML templates should allow unknown fields/properties ([3b6e359](3b6e359)) * **schema:** Ordered cloudformation/all.go file ([awslabs#238](https://github.com/parsnips/goformation/issues/238)) ([91254f3](91254f3)) * **schema:** version attribute of Function::S3Location in SAM is optional ([awslabs#226](https://github.com/parsnips/goformation/issues/226)) ([14b754c](14b754c)), closes [/github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3](https://github.com//github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md/issues/s3) [awslabs#87](https://github.com/parsnips/goformation/issues/87) * **schema, parser:** change Transform json schema to allow multiple macros ([awslabs#268](https://github.com/parsnips/goformation/issues/268)) ([072fc74](072fc74)), closes [awslabs#267](https://github.com/parsnips/goformation/issues/267) * **spec:** corrected AWS::Serverless::Api.Auth.Authorizers to be of type JSON rather than string ([awslabs#164](https://github.com/parsnips/goformation/issues/164)) ([4cf1bee](4cf1bee)) ### Code Refactoring * **generator:** moving resources and policies into their own packages ([awslabs#161](https://github.com/parsnips/goformation/issues/161)) ([03a0123](03a0123)) ### Features * **CI:** auto-generate AUTHORS.md file ([b37af7b](b37af7b)) * **lib:** Test feature (please ignore) ([1df611a](1df611a)) * **parser:** Add support for Conditions ([awslabs#260](https://github.com/parsnips/goformation/issues/260)) ([1b00f17](1b00f17)) * **parser:** Default to parsing as YAML unless the filename ends in .json ([awslabs#176](https://github.com/parsnips/goformation/issues/176)) ([42e7146](42e7146)) * **sam:** Add support for `AWS::Serverless::Api.TracingEnabled`, `AWS::Serverless::Function.PermissionsBoundary`, `AWS::Serverless::Function.DynamoEvent.Enabled`, `AWS::Serverless::Function.KinesisEvent.Enabled`, and `AWS::Serverless::Function.SQSEvent.Enabled` ([awslabs#191](https://github.com/parsnips/goformation/issues/191)) ([38f0187](38f0187)) * **schema:** add CloudFormation parameter type ([awslabs#259](https://github.com/parsnips/goformation/issues/259)) ([27fe204](27fe204)) * **schema:** Add UpdateReplacePolicy to the templates and the policies so that it is generated for every resource ([awslabs#272](https://github.com/parsnips/goformation/issues/272)) ([696c515](696c515)) * **schema:** Added CloudWatch Logs event for SAM ([awslabs#271](https://github.com/parsnips/goformation/issues/271)) ([fedb013](fedb013)) * **schema:** AWS CloudFormation Update (2019-03-15) ([awslabs#189](https://github.com/parsnips/goformation/issues/189)) ([8b332a4](8b332a4)) * **schema:** AWS CloudFormation Update (2019-10-26) ([awslabs#231](https://github.com/parsnips/goformation/issues/231)) ([63ca311](63ca311)) * **schema:** AWS CloudFormation Update (2019-10-29) ([awslabs#239](https://github.com/parsnips/goformation/issues/239)) ([7ff8499](7ff8499)) * **schema:** CloudFormation Updates (2019-12-09) ([awslabs#251](https://github.com/parsnips/goformation/issues/251)) ([a23ba41](a23ba41)) * **schema:** CloudFormation Updates (2020-01-30) ([awslabs#263](https://github.com/parsnips/goformation/issues/263)) ([fda2d31](fda2d31)) * **schema:** CloudFormation Updates (2020-02-13) ([awslabs#266](https://github.com/parsnips/goformation/issues/266)) ([bc75922](bc75922)) * **schema:** CloudFormation Updates (2020-02-22) ([awslabs#269](https://github.com/parsnips/goformation/issues/269)) ([ffd88a6](ffd88a6)) * **schema:** regenerated resources to apply SAM schema fixes from previous PR ([b30c019](b30c019)) * Added semantic-release CI setup ([a9b368a](a9b368a)) * Added semantic-release configuration file ([3b25fdb](3b25fdb)) * Fix method conflicts (awslabs#245) ([d0b0a8b](d0b0a8b)), closes [awslabs#245](https://github.com/parsnips/goformation/issues/245) [awslabs#241](https://github.com/parsnips/goformation/issues/241) [awslabs#294](https://github.com/parsnips/goformation/issues/294) * Group CloudFormation resources by AWS service name (awslabs#234) ([d0749e6](d0749e6)), closes [awslabs#234](https://github.com/parsnips/goformation/issues/234) ### 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: ```go import "github.com/awslabs/goformation/v2/cloudformation/resources" ... snip ... topic := &resources.AWSSNSTopic{} ``` New usage: ```go 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{}
- Loading branch information