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

Inappropriate value for attribute "ingress" #517

Closed
cesarpball opened this issue Jan 25, 2021 · 3 comments
Closed

Inappropriate value for attribute "ingress" #517

cesarpball opened this issue Jan 25, 2021 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@cesarpball
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

cdktf & Language Versions

cdktf version: 0.0.19
Language: Python

Affected Resource(s)

SecurityGroups (Ingress resource)

Debug Output

`Error: Incorrect attribute value type

on cdk.tf.json line 237, in resource.aws_security_group.awsrdsinfra_securitygroup_62FC8872:
237: "ingress": [
238: {
239: "cidrBlocks": [
240: "0.0.0.0/0"
241: ],
242: "description": "Allow access to database",
243: "fromPort": 3306,
244: "ipv6CidrBlocks": [],
245: "prefixListIds": [],
246: "protocol": "tcp",
247: "securityGroups": [],
248: "selfAttribute": false,
249: "toPort": 3306
250: }
251: ],

Inappropriate value for attribute "ingress": element 0: attributes
"cidr_blocks", "from_port", "ipv6_cidr_blocks", "prefix_list_ids",
"security_groups", "self", and "to_port" are required.

non-zero exit code 1`

Expected Behavior

❯ cdktf diff
Stack: aws-rds-infra
Resources

+ AWS_DB_INSTANCE awsrdsinfra_dbinsta aws_db_instance.awsrdsinfra_dbinstancecesarpball_6817F739
+ AWS_DB_PARAMETER_GRO awsrdsinfra_paramet aws_db_parameter_group.awsrdsinfra_parametergroup_D8F91

Actual Behavior

`Error: Incorrect attribute value type

on cdk.tf.json line 237, in resource.aws_security_group.awsrdsinfra_securitygroup_62FC8872:
237: "ingress": [
238: {
239: "cidrBlocks": [
240: "0.0.0.0/0"
241: ],
242: "description": "Allow access to database",
243: "fromPort": 3306,
244: "ipv6CidrBlocks": [],
245: "prefixListIds": [],
246: "protocol": "tcp",
247: "securityGroups": [],
248: "selfAttribute": false,
249: "toPort": 3306
250: }
251: ],

Inappropriate value for attribute "ingress": element 0: attributes
"cidr_blocks", "from_port", "ipv6_cidr_blocks", "prefix_list_ids",
"security_groups", "self", and "to_port" are required.

non-zero exit code 1`

Steps to Reproduce

cdktf diff

Important Factoids

References

@cesarpball cesarpball added the bug Something isn't working label Jan 25, 2021
@skorfmann
Copy link
Contributor

@cesarpball thanks for raising this issue. This looks like something which will be fixed with #479

@skorfmann skorfmann added the duplicate This issue or pull request already exists label Jan 25, 2021
@skorfmann
Copy link
Contributor

skorfmann commented Jan 25, 2021

Closing as duplicate of #223 - gonna be addressed in #479

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants