Git Product home page Git Product logo

cloud-deployer-pac2's Introduction

cloud-deployer-pac2

Desplegar un blog amb el CMS Wordpress en el cloud públic de Amazon Web Services (AWS) i gestionar la seguretat de tota la infraestructura necessària.

image

Els requeriments de seguretat són els següents:

  • L’accés a la màquina EC2 només es podrà realitzar mitjançant claus SSH
  • Creació d’un Security Group que garanteixi que el servidor EC2 només té oberts els següents ports 80 (HTTP), 443 (HTTPS) i 22 (SSH)

Crear les claus rsa

ssh-keygen -b 4096 -t rsa -f AFERRANC-CCF-Key-WebServer
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in AFERRANC-CCF-Key-WebServer.
Your public key has been saved in AFERRANC-CCF-Key-WebServer.pub.
The key fingerprint is:
SHA256:qUpRNfw0BTWqLYxBCaUTE1pfnkvkSMu4e5F92uUuZbI [email protected]
The key's randomart image is:
+---[RSA 4096]----+
|    *++o= .++    |
|   o X.O.oo. .   |
|  . + B =o..     |
|     + B =.      |
|    o + S o .    |
|     o o =.oo    |
|    o o . .=.    |
|   . o    E.     |
|    .      ..    |
+----[SHA256]-----+

Inicialitzar terraform

terraform init
Initializing the backend...

Initializing provider plugins...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Installing hashicorp/aws v4.20.0...
- Installed hashicorp/aws v4.20.0 (self-signed, key ID 34365D9472D7468F)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/plugins/signing.html

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

Deploy de la infraestructura

terraform plan --out plan.out

terraform apply plan.out

Destruir la infraestructura

terraform destroy

cloud-deployer-pac2's People

Contributors

aferranc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.