IAAC || Terraform || GCP-Bucket

  • Setting up our own GCP account.
  • Setting up GCP Project and Service-Account into GCP account.
  • Setting up gCloud CLI at our local system.
  • Introduction to GCS Bucket and Creating bucket manually.
  • Creating GCS Bucket through Terraform via local machine.
  • Creating GCS Bucket through Terraform via CloudShell.
  • Creating GCS Bucket through ServiceAccount.
  • Modifying the properties of GCS Bucket using Terraform.
  • Adding Lifecycle-Rule to the GCS Bucket through CloudConsole.
  • Adding Lifecycle-Rule to the GCS Bucket using Terraform.
  • Adding Retention-Policy to the GCS Bucket using Terraform.
  • Multi-Region.
  • Dual-Region
  • Region
  • Standard
  • Nearline
  • Coldline
  • Archive
  • Uniform
  • Fine-Grained.
  • Encryption.
  • Retention Policy
  • Labels
  • Here, we are using the google as provider. This is a plugin just like, we had been using the local & random plugins.
  • We had also specified the project name, region and zone into which we basically want the Terraform to execute.
  • At last, we have supplied the resource details, which we wanted to create.
  • location
  • project
  • storage_class
  • force_destroy
  • We can see from above screenshot that, this didn’t worked at all and the reason for the same is because our service-account doesn’t have relevant access to the Google Cloud Project.
  • It also means there is no role assigned to our service account, so next, we shall add the one.

--

--

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
aditya goel

aditya goel

Software Engineer for Big Data distributed systems