sudo hostnamectl set-hostname aws-cli
bash
def FirstFactorial(numero): | |
numero = int(input("Enter a number: ")) | |
i = 1 | |
if(numero == 0): | |
return "1" | |
for i in range(1, numero): | |
numero = numero*i |
provider "aws" { | |
profile = "default" # (Optional) This is the AWS profile name as set in the shared credentials file | |
region = "us-east-1" # (Required) AWS region | |
} | |
resource "aws_eks_cluster" "example" { | |
name = "a-cluster" # (Required) Name of the cluster | |
role_arn = "arn:aws:iam::123:role/eks-poc-eks-cluster-role" # (Required) ARN of the IAM role that provides permissions for the Kubernetes | |
vpc_config { # (Required) Configuration block for the VPC associated with your cluster |
// - String Challenge - | |
// Have the function StringChallenge(str) read the str parameter being passed which | |
// will contain the written out version of the numbers 0 - 9 | |
// and the words "minus" or "plus" and convert the expression into an actual final number written out as well. | |
// For example: if str is "foursixminustwotwoplusonezero" then this converts to "46 - 22 + 10" | |
// which evaluates to 34 and your program should return the final string threefour. | |
// If your final answer is negative it should include the word "negative." | |
// Examples: | |
// Input: "onezeropluseight" | |
// Output: oneeight |
name: "Terraform Infrastructure Plan" | |
on: | |
push: | |
branches: | |
- "*" | |
jobs: | |
terraform: | |
name: "Terraform Plan" |
1 Who is the primary audience for the Make Your Solution into a Backend Service on OpenShift® track?
2 Which of these is not a goal of the Make Your Solution into a Backend Service on OpenShift® track?
True or False: The AWS CloudFormation change sets feature can be used to preview the changes in a CloudFormation stack before applying an Update Stack call, and a user is 100 percent resilient against deletion accidents in their stack operations if they use change sets.
True or False: Operational best practices include consulting the AWS Documentation for Update Requires on the attributes of resources that will be changed, and using DeletionPolicy: Retain or DeletionPolicy: Snapshot on resources used for storing customer data.
#!/bin/bash | |
yum update -y | |
yum install -y httpd | |
yum install -y wget | |
cd /var/www/html | |
wget https://raw.githubusercontent.com/awsdevopsteam/route-53/master/N.virginia_2/index.html | |
wget https://raw.githubusercontent.com/awsdevopsteam/route-53/master/N.virginia_2/N.Virginiatwo.jpg | |
systemctl start httpd | |
systemctl enable httpd |
Tcpdump is a commandline tool that is used to dump traffic on a network. This tool comes in hand when you want to analyse network captures within the command line. Basically it can do most of the wireshark job.
NOTE This guide might not be complete it just serve as a reference to me.