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

Updates CloudFormation mapper to support additional resources #1120

Merged
merged 11 commits into from
Jan 24, 2022

Conversation

gaurav-gogia
Copy link
Contributor

@gaurav-gogia gaurav-gogia commented Jan 20, 2022

Update CFT - TF Mapper

This update brings in following resources into CFT - TF Mapper

  • AWS Autoscaling Launch Configuration
  • AWS SQS Queue
  • AWS SQS Queue Policy
  • AWS SNS Topic
  • AWS SNS Topic Policy

The update also fixes a typo in one of the existing maps:

"AWS::ApiGateway::Stage.MethodSetting":     AwsAPIGatewayStageMethodSettings

Name of resource in CFT uses the singular word setting

@cesar-rodriguez cesar-rodriguez changed the title Feature/update tf rsc mapper Updates CloudFormation mapper to support additional resources Jan 21, 2022
@codecov
Copy link

codecov bot commented Jan 24, 2022

Codecov Report

Merging #1120 (88a9699) into master (b0259e8) will decrease coverage by 0.87%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1120      +/-   ##
==========================================
- Coverage   78.59%   77.72%   -0.88%     
==========================================
  Files         239      244       +5     
  Lines        6724     6800      +76     
==========================================
  Hits         5285     5285              
- Misses       1111     1187      +76     
  Partials      328      328              
Impacted Files Coverage Δ
pkg/mapper/iac-providers/cft/cft.go 87.50% <0.00%> (-7.42%) ⬇️
...ers/cft/config/autoscaling-launch-configuration.go 0.00% <0.00%> (ø)
...apper/iac-providers/cft/config/sns-topic-policy.go 0.00% <0.00%> (ø)
pkg/mapper/iac-providers/cft/config/sns-topic.go 0.00% <0.00%> (ø)
...apper/iac-providers/cft/config/sqs-queue-policy.go 0.00% <0.00%> (ø)
pkg/mapper/iac-providers/cft/config/sqs-queue.go 0.00% <0.00%> (ø)

- nil check on metadataopitons
- base64 check on userdata
patilpankaj212
patilpankaj212 previously approved these changes Jan 24, 2022
Copy link
Contributor

@patilpankaj212 patilpankaj212 left a comment

Choose a reason for hiding this comment

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

Please add tests for the newly added resources as well in the KaiMonkey repository.

1. add delete_on_termination
2. fix userDataBase64 validation and assignment
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@gaurav-gogia gaurav-gogia merged commit 52e4cdb into tenable:master Jan 24, 2022
@gaurav-gogia gaurav-gogia deleted the feature/add_tf_rsc_mapper branch February 4, 2022 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants