From 640c720507f5fed7e729692d9075ccdd1db55036 Mon Sep 17 00:00:00 2001 From: Joel Wembo Date: Fri, 12 Apr 2024 17:13:07 +0800 Subject: [PATCH] added remove ec2 access --- deployments/Jenkins/Jenkinsfile | 18 +++++++++--------- .../terraform/installer.sh | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/deployments/Jenkins/Jenkinsfile b/deployments/Jenkins/Jenkinsfile index 3bc6627..792db99 100644 --- a/deployments/Jenkins/Jenkinsfile +++ b/deployments/Jenkins/Jenkinsfile @@ -5,15 +5,15 @@ pipeline{ } environment { DOCKERHUB_CREDENTIALS = credentials('globaldockerhub') - appName = "server" - registry = "" - registryCredential = "" - projectPath = "" - AWS_ACCESS_KEY_ID = credentials('your_aws_access_key_id') - AWS_SECRET_ACCESS_KEY = credentials('your_aws_secret_access_key') - AWS_REGION = 'your_aws_region' - EC2_INSTANCE = 'your_ec2_instance_id' - SSH_KEY = credentials('your_ssh_key') + // appName = "server" + // registry = "" + // registryCredential = "" + // projectPath = "" + // AWS_ACCESS_KEY_ID = credentials('your_aws_access_key_id') + // AWS_SECRET_ACCESS_KEY = credentials('your_aws_secret_access_key') + // AWS_REGION = 'your_aws_region' + // EC2_INSTANCE = 'your_ec2_instance_id' + // SSH_KEY = credentials('your_ssh_key') } stages { diff --git a/deployments/terraform/terraform-aws-ec2-tf/terraform/installer.sh b/deployments/terraform/terraform-aws-ec2-tf/terraform/installer.sh index c66936b..7c5f448 100644 --- a/deployments/terraform/terraform-aws-ec2-tf/terraform/installer.sh +++ b/deployments/terraform/terraform-aws-ec2-tf/terraform/installer.sh @@ -52,3 +52,6 @@ sudo chmod +x /usr/local/bin/docker-compose docker-compose --version echo "Docker Compose Installed successfully installer" +# nginx installation for testing purpose +docker run --name mynginx1 -p 80:80 -d nginx +echo "nginx server running in your domain.com at port 80" \ No newline at end of file