Skip to content

Commit

Permalink
Issue-191: Create a WordPress instance in Lightsail (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq authored Jul 30, 2023
2 parents 0334afa + 609aeba commit 0703991
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions tutorial/wordPress-instance-with-amazon-lightsail/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Create a new Wordpress Lightsail Instance
resource "aws_lightsail_instance" "wordpress" {
name = "wordpress-demo"
availability_zone = "us-east-1b"
blueprint_id = "wordpress"
bundle_id = "nano_1_0"
tags = {
type = "wordpress"
}
}
9 changes: 9 additions & 0 deletions tutorial/wordPress-instance-with-amazon-lightsail/output.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
output "public_ip_address" {
description = "Public IP address of the Instance"
value = aws_lightsail_instance.wordpress.public_ip_address
}

output "username" {
description = "Username to connect to the Instance (not webpage)"
value = aws_lightsail_instance.wordpress.username
}

0 comments on commit 0703991

Please sign in to comment.