task 4.1 aws
This commit is contained in:
parent
096d1c9573
commit
5470eebeaa
4
lab4/4.1-aws/credentials
Normal file
4
lab4/4.1-aws/credentials
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[default]
|
||||||
|
aws_access_key_id=ASIAWKOLD3Q4GK73S7X6
|
||||||
|
aws_secret_access_key=AB3lOLymvYuX4jNl+3S+Ig9xDAPZdw/g5S4UPWIL
|
||||||
|
aws_session_token=FwoGZXIvYXdzEGkaDGmuNu5/6d//knxvByLFAfgdbunEfk2KJGuh7WlYmtLxCHmtPFRCo+Pwb+DYEyGz9F4cL9bhjLetspm3pePr+aio+0qvxMkLFKKn4JOQWDchCyNg6pp9Scbr7AWIS5MHY5i4MI8ufIXPXEviciZcNNNwfzJSzirSGysWqGMg0ZZVOFqcOYpSy2ysdlx8Qv8dnmZ4TF4FYGhEr9kfybOrPPJu7dswCfD2W3tRUBny9y0s/BbDaIDcLySdhdDL3S6J0v8gGxckBDsKPKv/PvAb06o6mi6gKKektZ4GMi1VC0de82qO1LLsszWeVNpGJr+0XkppXjIErO4gmQp3W1do5hGWjVQOzkfj/64=
|
@ -87,11 +87,10 @@ data "template_file" "user_data_server" {
|
|||||||
|
|
||||||
resource "aws_instance" "server" {
|
resource "aws_instance" "server" {
|
||||||
count = 2
|
count = 2
|
||||||
ami = "ami-0778521d914d23bc1"
|
ami = "ami-00874d747dde814fa"
|
||||||
instance_type = "t2.micro"
|
instance_type = "t2.micro"
|
||||||
subnet_id = aws_subnet.public_subnet.id
|
subnet_id = aws_subnet.public_subnet.id
|
||||||
vpc_security_group_ids = [aws_security_group.default.id]
|
vpc_security_group_ids = [aws_security_group.default.id]
|
||||||
ecs_associate_public_ip_address = false
|
|
||||||
user_data = data.template_file.user_data_server.rendered
|
user_data = data.template_file.user_data_server.rendered
|
||||||
|
|
||||||
tags = {
|
tags = {
|
||||||
|
@ -4,4 +4,5 @@ packages:
|
|||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- git clone https://git.wmi.amu.edu.pl/s444417/dpzc
|
- git clone https://git.wmi.amu.edu.pl/s444417/dpzc
|
||||||
|
- chmod +x ./dpzc/lab4/4.1-hetzner/webservice
|
||||||
- ./dpzc/lab4/4.1-hetzner/webservice
|
- ./dpzc/lab4/4.1-hetzner/webservice
|
Loading…
Reference in New Issue
Block a user