• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

create

Create Group With ID

March 22, 2019

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

Filed Under: Linux Tagged With: create, group, id

GCP CLI Create Firewall

March 12, 2019

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

Filed Under: Cloud Tagged With: cli, cloud, create, delete, describe, firewall, gcp, google

AWS CLI Create Bucket

December 9, 2018

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

Filed Under: Cloud, Linux Tagged With: aws cli, bucket, create, s3

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 5
  • Go to page 6
  • Go to page 7
  • Home
  • About
  • Archives

Copyright © 2023