Skip to content

Add support for Cognito - #262

Open
chrisshafer wants to merge 10 commits into
Bayer-Group:masterfrom
chrisshafer:Cognito
Open

Add support for Cognito#262
chrisshafer wants to merge 10 commits into
Bayer-Group:masterfrom
chrisshafer:Cognito

Conversation

@chrisshafer

@chrisshafer chrisshafer commented Oct 26, 2018

Copy link
Copy Markdown
Contributor
  • Adds support for Cognito
  • Adds very rudimentary codegen functionality
  • Updates AWS::AutoScaling::AutoScalingGroup to support conditional AZ's and health checks.
  • Adds missing ServiceName field to AWS::ECS::Service

Fixes: #165

@chrisshafer chrisshafer changed the title Cognito Add support for Cognito Oct 26, 2018
@@ -10,12 +10,13 @@ import spray.json._

case class `AWS::AutoScaling::AutoScalingGroup`(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you shouldn't be specifying both AvailabilityZones and VPCZoneIdentifier. For maximum type safety we should make both optional and make the whole constructor private. Then we can add 2 new methods that instantiate a ASG with the different methods as well as a default for backwards compatibility in the companion. See AWS::EC2::EIP as an example.

@@ -0,0 +1,243 @@
package com.monsanto.arch.cloudformation.codegen

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a really cool idea. Can you add some sort guide on how to use it to the README under a how to add new types section?

@bkrodgers

Copy link
Copy Markdown
Contributor

@chrisshafer I'm finally getting around to catching up on PRs here. Is this still something we'd like to see merged? I see @tj-corrigan had a couple comments.

@chrisshafer

Copy link
Copy Markdown
Contributor Author

@bkrodgers likely, I'll see if I can find the time in the next couple weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Cognito

3 participants