Skip to content

Commit 24a709a

Browse files
authored
fixed syntax error
1 parent 9649455 commit 24a709a

File tree

1 file changed

+10
-2
lines changed
  • adminforth/documentation/blog/2025-11-04-k3s-ec2-deployment

1 file changed

+10
-2
lines changed

adminforth/documentation/blog/2025-11-04-k3s-ec2-deployment/index.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ locals {
131131
az_b = "us-west-2b"
132132
app_name = "<your_app_name>"
133133
app_source_code_path = "../../"
134-
ansible_dir = "/home/kdoropii/myadmin/deploy/ansible/playbooks"
134+
ansible_dir = "../ansible/playbooks"
135135
136136
ingress_ports = [
137137
{ from = 22, to = 22, protocol = "tcp", desc = "SSH" },
@@ -143,7 +143,7 @@ locals {
143143
144144
provider "aws" {
145145
region = local.aws_region
146-
profile = "my_aws"
146+
profile = "myaws"
147147
}
148148
149149
data "aws_ami" "ubuntu_22_04" {
@@ -727,6 +727,14 @@ aws_access_key_id = <your_access_key>
727727
aws_secret_access_key = <your_secret_key>
728728
```
729729

730+
Then use
731+
732+
```ini
733+
aws login
734+
```
735+
736+
And enter your credentials
737+
aws
730738
### Step 8 - Run deployment
731739

732740
All deployment-related actions are automated, so no additional actions are required. To deploy the application, you only need to enter a few commands listed below and wait a few minutes. After that, you will be able to connect to the web application using the link you will receive in `terraform_output`. Next, if you wish, you can add GitHub Actions. To do this, follow the instructions in [our other post](https://adminforth.dev/blog/compose-aws-ec2-ecr-terraform-github-actions/#chellenges-when-you-build-on-ci).

0 commit comments

Comments
 (0)