mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
revert
This commit is contained in:
parent
d6f60ffba4
commit
6171400d17
1 changed files with 0 additions and 21 deletions
21
.github/workflows/main.tf
vendored
21
.github/workflows/main.tf
vendored
|
|
@ -3,11 +3,6 @@ provider "aws" {
|
|||
region = var.aws_region
|
||||
}
|
||||
|
||||
// Read local file not created via terraform
|
||||
data "local_file" "github_actions" {
|
||||
filename = "${path.module}/${var.private_key}"
|
||||
}
|
||||
|
||||
// Create a security group with access to port 22 and port 80 open to serve HTTP traffic
|
||||
|
||||
data "aws_vpc" "default" {
|
||||
|
|
@ -64,22 +59,6 @@ resource "aws_instance" "testing_vm" {
|
|||
root_block_device {
|
||||
delete_on_termination = true
|
||||
}
|
||||
# SSH into instance - will ensure server is up before next step in workflows
|
||||
connection {
|
||||
# Host name
|
||||
host = self.public_ip
|
||||
# The default username for our AMI
|
||||
user = var.ami_username
|
||||
# Private key for connection
|
||||
private_key = data.local_file.github_actions.content
|
||||
# Type of connection
|
||||
type = "ssh"
|
||||
}
|
||||
provisioner "remote-exec" {
|
||||
inline = [
|
||||
"echo 'hello_world'",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
// generate inventory file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue