Here’s how to create a Linux group with a specific ID. Group name is nginx in this example. ID is 1000.
groupadd nginx -g 1000 |
cloud engineer
Here’s how to create a Linux group with a specific ID. Group name is nginx in this example. ID is 1000.
groupadd nginx -g 1000 |
groupadd nginx -g 1000
Here’s how to add a firewall rule in Google Cloud Platform CLI
gcloud compute firewall-rules create "firewall-name" \ --description="firewall-description" \ --priority "1000" \ --direction INGRESS \ --action allow \ --network "network-name" \ --target-service-accounts="service@account.net" \ --source-ranges="10.0.0.0/8" \ --rules tcp:9001 |
gcloud compute firewall-rules create "firewall-name" \ --description="firewall-description" \ --priority "1000" \ --direction INGRESS \ --action allow \ --network "network-name" \ --target-service-accounts="service@account.net" \ --source-ranges="10.0.0.0/8" \ --rules tcp:9001
Describe firewall rule.
gcloud compute firewall-rules describe firewall-name |
gcloud compute firewall-rules describe firewall-name
Delete firewall rule.
gcloud compute firewall-rules delete firewall-name |
gcloud compute firewall-rules delete firewall-name
Creating a bucket via the AWS Console takes only a few clicks. If you’re creating a bucket via shell script, you will need to use the AWS CLI (command line interface). So, here’s the script to create a S3 bucket via the AWS CLI within shell. Now the bucket name has to be globally unique similar to a domain name. If someone already has claimed it, you will need to use an alternative name.
aws s3api create-bucket --bucket bucket-name --region us-east-2 create-bucket-configuration LocationConstraint=us-east-2 |
aws s3api create-bucket --bucket bucket-name --region us-east-2 create-bucket-configuration LocationConstraint=us-east-2