-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
feat: replace template
provider with templatefile
function
#95
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bridgecrew has found infrastructure configuration errors in this PR ⬇️
ssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "aws_instance" "default" { | |
resource "aws_instance" "default" { | |
ebs_optimized = true |
Ensure that EC2 is EBS optimized
Resource: aws_instance.default | ID: BC_AWS_GENERAL_68
Description
TBAssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure EBS volumes have encrypted launch configurations
Resource: aws_instance.default | ID: BC_AWS_GENERAL_13
How to Fix
resource "aws_launch_configuration" "example" {
...
instance_type = "t2.micro"
+ root_block_device {
+ encrypted = true
+ }
...
}
Description
Amazon Elastic Block Store (EBS) volumes allow you to create encrypted launch configurations when creating EC2 instances and auto scaling. When the entire EBS volume is encrypted, data stored at rest on the volume, disk I/O, snapshots created from the volume, and data in-transit between EBS and EC2 are all encrypted.Benchmarks
- PCI-DSS V3.2 3
ssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "aws_instance" "default" { | |
resource "aws_instance" "default" { | |
ebs_optimized = true |
Ensure that EC2 is EBS optimized
Resource: module.ec2_bastion.aws_instance.default | ID: BC_AWS_GENERAL_68
Description
TBAssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure EBS volumes have encrypted launch configurations
Resource: aws_instance.default | ID: BC_AWS_GENERAL_13
How to Fix
resource "aws_launch_configuration" "example" {
...
instance_type = "t2.micro"
+ root_block_device {
+ encrypted = true
+ }
...
}
Description
Amazon Elastic Block Store (EBS) volumes allow you to create encrypted launch configurations when creating EC2 instances and auto scaling. When the entire EBS volume is encrypted, data stored at rest on the volume, disk I/O, snapshots created from the volume, and data in-transit between EBS and EC2 are all encrypted.Benchmarks
- PCI-DSS V3.2 3
Calculating...
ssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "aws_instance" "default" { | |
resource "aws_instance" "default" { | |
ebs_optimized = true |
Ensure that EC2 is EBS optimized
Resource: aws_instance.default | ID: BC_AWS_GENERAL_68
Description
TBADependent Resources
Calculating...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change details
-
Error ID Change Path Resource BC_AWS_GENERAL_13 Added /main.tf aws_instance.default BC_AWS_GENERAL_68 Added /main.tf aws_instance.default
…rm-aws-ec2-bastion-server into remove_template_provider
ssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "aws_instance" "default" { | |
resource "aws_instance" "default" { | |
ebs_optimized = true |
Ensure that EC2 is EBS optimized
Resource: aws_instance.default | ID: BC_AWS_GENERAL_68
Description
TBADependent Resources
Calculating...
ssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure EBS volumes have encrypted launch configurations
Resource: aws_instance.default | ID: BC_AWS_GENERAL_13
How to Fix
resource "aws_launch_configuration" "example" {
...
instance_type = "t2.micro"
+ root_block_device {
+ encrypted = true
+ }
...
}
Description
Amazon Elastic Block Store (EBS) volumes allow you to create encrypted launch configurations when creating EC2 instances and auto scaling. When the entire EBS volume is encrypted, data stored at rest on the volume, disk I/O, snapshots created from the volume, and data in-transit between EBS and EC2 are all encrypted.Benchmarks
- PCI-DSS V3.2 3
Calculating...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change details
-
Error ID Change Path Resource BC_AWS_GENERAL_13 Added /main.tf aws_instance.default BC_AWS_GENERAL_68 Added /main.tf aws_instance.default
ssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure EBS volumes have encrypted launch configurations
Resource: aws_instance.default | ID: BC_AWS_GENERAL_13
How to Fix
resource "aws_launch_configuration" "example" {
...
instance_type = "t2.micro"
+ root_block_device {
+ encrypted = true
+ }
...
}
Description
Amazon Elastic Block Store (EBS) volumes allow you to create encrypted launch configurations when creating EC2 instances and auto scaling. When the entire EBS volume is encrypted, data stored at rest on the volume, disk I/O, snapshots created from the volume, and data in-transit between EBS and EC2 are all encrypted.Benchmarks
- PCI-DSS V3.2 3
Calculating...
ssh_user = var.ssh_user | ||
} | ||
} | ||
|
||
resource "aws_instance" "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "aws_instance" "default" { | |
resource "aws_instance" "default" { | |
ebs_optimized = true |
Ensure that EC2 is EBS optimized
Resource: aws_instance.default | ID: BC_AWS_GENERAL_68
Description
TBADependent Resources
Calculating...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change details
-
Error ID Change Path Resource BC_AWS_GENERAL_13 Added /main.tf aws_instance.default BC_AWS_GENERAL_68 Added /main.tf aws_instance.default
/test all |
template
provider with templatefile
function
@kevcube Thanks for the contribution! Released as https://github.com/cloudposse/terraform-aws-ec2-bastion-server/releases/tag/0.30.0 |
what
why
Duplicate
#91
I didn't realize until after pushing 🤦