Sign in

Cloud Architect | AWS, GCP, Azure, Python, Kubernetes, Terraform, Ansible

Steps

brew install python
ls -l /usr/local/bin/python*
ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python
curl “https://awscli.amazonaws.com/AWSCLIV2.pkg" -o “AWSCLIV2.pkg”
sudo installer -pkg AWSCLIV2.pkg -target /
which aws
aws --version
brew install git
git --version
git config --global user.name “<your username>”
git config --global user.email “<your mail id>”
git config --global credential.helper osxkeychain
git config --global mergetool.sublime.cmd “subl -w \$MERGED”
git config --global mergetool.sublime.trustExitCode false
git config --global merge.tool sublime
git mergetool -y
brew install --cask visual-studio-code
echo…

Steps

vi requirements.txtapache-beam==2.14.0
google-api-core==1.14.2
google-apitools==0.5.28
google-auth==1.6.3
google-cloud==0.34.0
google-cloud-bigquery==1.17.0
google-cloud-bigtable==0.32.2
google-cloud-core==1.0.0
google-cloud-datastore==1.9.0
google-cloud-pubsub==0.42.1
google-cloud-storage==1.17.0
google-cloud-vision==0.38.0
httplib2==0.12.0
mock==2.0.0
numpy==1.17.0
six==1.12.0
Faker==2.0.0
faker-schema==0.1.4
Cython==0.29.13
fastavro==0.21.24

3. Enter the following…


Ports:

TCP: 53, 135, 389, 445 ,464, 636, 3268, 3269, 49152–65535
UDP: 53, 88, 135, 389, 445, 464, 636, 3268, 3269, 123, 137, 138

Purpose of the ports:


Pipelining


Steps

2. You can dump the entire Event to CloudWatch log by adding the following line in your function→ convert event to json string with 4 space indentation.

console.log(‘Received event:’, JSON.stringify(event, null, 4));

3. For end to end testing, ensure you rename the target file in S3 that your browser points to. This ensures no issues with caching on browser or lambda@edge side that could cause the lambda function not being invoked.

4. The console.log output of the lambda function…


Red Hat Enterprise Linux (RHEL) / Amazon Linux

https://qualysguard.qualys.com/am/help/sensors/cloud_agent.htm

2. Perform installation with the following command:

sudo rpm -ivh qualys-cloud-agent.x86_64.rpm

3. Activate Qualys Cloud Agent with the following command:

sudo /usr/local/qualys/cloud-agent/bin/qualys-cloud-agent.sh ActivationId=1032h37-dd20-4fde-93c8-2q3dwedae34 
CustomerId=aa9845nb0-6643-5564-8045-1234wsDDAS

4. Update Qualys Proxy setting and restart the service.

echo "qualys_https_proxy=\"http://<proxy-url>:1080\"" > /etc/sysconfig/qualys-cloud-agentsystemctl restart qualys-cloud-agent

5. For troubleshooting -> log path in Linux environment

/var/log/qualys/qualys-cloud-agent.log

Ubuntu

https://qualysguard.qualys.com/am/help/sensors/cloud_agent.htm

2. Perform installation with the following command:

sudo dpkg --install QualysCloudAgent.deb

3. Activate Qualys Cloud Agent with the following command:

sudo /usr/local/qualys/cloud-agent/bin/qualys-cloud-agent.sh ActivationId=10feb827-dd20-4fde-93c8-q234dasds CustomerId=aa41eda0-6643-5564-8045-23edsdsdDs…

Steps

https://hub.docker.com/editions/community/docker-ce-desktop-windows

2. Install WSL2.

https://docs.microsoft.com/en-us/windows/wsl/install-win10

3. Make sure awscli is up to date.

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html

4. Run the following command to login to the ECR repo.

aws ecr get-login-password --region <aws-region> | docker login --username AWS --password-stdin <ecr-repo-name>

Or if you are using an older awscli, you can try

aws ecr get-login --no-include-email --region <aws-region> > ./run.sh

Then run the shell file — run.sh

5. If you encounter error in step 4 →

Error saving credentials: error storing credentials - err: exit status 1

then you need to rename the following exe file.

Arun Kumar

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store