Comments (7)
Is it possible to share plan.out.json
for debugging, if it is not confidential ?
from cli.
Here you go. One question that comes to mind is are aws_launch_configuration resources still valid in 0.12+? Should it be aws_launch_template?
plan.out.json.txt
from cli.
Thanks! It looks like the problem is there due to resource mounting.
Will create a fix asap.
from cli.
What is resource mounting?
from cli.
This is a feature of terraform-compliance
to comply with deeper tests created with terraform
.
E.g. ;
resource "aws_security_group" "my_security_group" {
name = "some-sg"
...
}
resource "aws_security_group_rule" "my_security_rule_1" {
type = "ingress"
from_port = 443
to_port = 443
protocol = "tcp"
...
...
security_group_id = "${aws_security_group.security_group.id}"
}
Where aws_security_group_rule.my_security_rule_1
is actually mounted on aws_security_group.my_security_group
- which means, when terraform-compliance
runs a test against aws_security_group.my_security_group
, it should also check all the mounted resources against that resource.
Specifically, the bug in your scenario was, aws_autoscaling_group.example
(which supports tags
) was mounted over aws_launch_configuration.example
and when we search for the tags
within the values, it was returning True
.
Now it is fixed with 1.0.8
, please have a try :)
from cli.
Tested with 1.0.8. it looks good. It is no longer failing for missing aws_launch_configuration tags.
Thanks.
from cli.
Thanks for re-testing. Closing the issue.
from cli.
Related Issues (20)
- cleanup tmp HOT 3
- --coverage flag with docker HOT 1
- FATAL ERROR: Unsupported terraform version (1.4.0). HOT 4
- Support for Terraform 1.4.* HOT 2
- Add support for testing the terraform block HOT 1
- tagging feature - false positive for aws_lambda_function's "environment" argument HOT 2
- Terregarrunt support
- Applying test cases to only resources from specific provider HOT 1
- Support for Terraform 1.5.* HOT 8
- Can not find aws_msk_cluster defined in target terraform plan
- Question: Using Terraform Compliance in CircleCI with Terraform and Python Orbs HOT 4
- Add support for Terraform Version 1.6.0 HOT 4
- Is `or` logic supported at all? HOT 1
- STDERR isn't being used, log level cannot be changed.
- THEN's condition matches for child properties in absence of a property at expected level. Is this expected? HOT 1
- 'AttributeError: 'str' object has no attribute 'append'' HOT 2
- "AttributeError: 'dict' object has no attribute 'startswith'" when using resources defining their own "references" blocks
- FATAL ERROR: Unsupported terraform version (1.7.0)
- Get rid of "/root/.cache" directory
- When condition on resource which has its own type property fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.