Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FromPort, ToPort and Egress are optional #463

Closed
wants to merge 14 commits into from
Closed

FromPort, ToPort and Egress are optional #463

wants to merge 14 commits into from

Conversation

jonapich
Copy link
Contributor

Those 3 properties are flagged as optional in AWS's docs.

Those 3 properties are flagged as optional in AWS's docs.
@jonapich
Copy link
Contributor Author

jonapich commented Apr 18, 2016

This should fix #392

Made a mistake in my previous commit - this one actually reflects the
docs.
Subclassed Template into an object able to analyze and create
Troposphere objects based on an existing CloudFormation Template.

Conditions are missing - working on it.,
This removal helps inspection of the Configuration class to enable
automating troposphere object creation.
Added UpdatePolicy, CreationPolicy, DeletionPolicy, Metadata and
DependsOn discovery.
Special AWSHelperFn typically take lowercased parameters, but templates
use uppercase. for this reason we cannot map to most of them, so we
fallback with a generic one. This might not work for all types if they
do extra processing in their init routine but makes tests pass :)
S3 Bucket used a 'name' argument and put that into the 'title' of the
AWSBaseObject. This modification is backward compatible and allows
'name' to be substituted by 'title' in the kwargs.
AWSHelperFn are ignored in AWSObjectBase, it's not necessary to flag
them in props anymore.
@jonapich
Copy link
Contributor Author

Ow, sorry, I'm a total noob with github, I wanted to do a different PR with this last change; I'll be more careful next time.

@markpeek
Copy link
Member

@muikrad It would be best to back out the more global import changes from this PR and keep these issues separate. If there is a dependency issue you're worried about then I'll merge #463 first (just the port changes) and then you can apply your import change on top. Thanks.

…dformation'"

This reverts commit e64c26a, reversing
changes made to 89caac9.
@jonapich
Copy link
Contributor Author

jonapich commented Apr 19, 2016

@markpeek Sorry I'm learning github TODAY 😭 I reverted the last change which wasn't supposed to be in here at all (import_cloudformation). Do you want to merge the trivial AWSHelperFn removals from this PR or should I (learn more github and...) revert and move that to a separate commit?

@markpeek
Copy link
Member

@muikrad I pulled out the port changes and the AWSHelperFn as separate commits after squashing things. Please check out and approve the two commits in this branch to make sure I got the right changes: https://github.com/cloudtools/troposphere/tree/muikrad-463

BTW, for forked projects I find it best to create non-master branches to handle PR's. That way you can always sync the real master back into your forked repo.

@jonapich
Copy link
Contributor Author

It looks OK to me.

Sorry for the fiasco and thanks for the help and advice.

@markpeek
Copy link
Member

The port changes and the AWSHelperFn have been pushed onto master as separate commits. Thanks for the changes!

@markpeek markpeek closed this Apr 19, 2016
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.

None yet

2 participants