Skip to content

Commit

Permalink
Update Ec2.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
Itsparththing authored Nov 15, 2024
1 parent e0bdb3b commit 8ee6998
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions redinfracraft/Terraform/EC2 Instance/Ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,28 @@ resource "aws_cloudfront_distribution" "my_cloudfront_distribution" {
# Output the public IP of the instance
output "instance_ip" {
value = "Machine Ip: ${aws_instance.Terra_Ec2.public_ip}"
}
value = <<EOF
******************************************************
| 🖥️ Machine Ip: ${aws_instance.Terra_Ec2.public_ip} |
******************************************************
EOF
}

# Output the Username of the instance
output "username" {
value = "Username of Machine: ubuntu"
value = <<EOF
**********************************
| 👤 Username of Machine: ubuntu |
**********************************
EOF
}


# Output the CloudFront domain name
# Output the Domain of the CloudFront
output "cloudfront_domain_name" {
value = "CloudFront Domain: ${aws_cloudfront_distribution.my_cloudfront_distribution.domain_name}"
value = <<EOF
***********************************************************************************************
| 🌍 CloudFront Domain: ${aws_cloudfront_distribution.my_cloudfront_distribution.domain_name} |
***********************************************************************************************
EOF
}

0 comments on commit 8ee6998

Please sign in to comment.