If everything is going good then the below command will show the plan that we are going to create resources. "aws_redshift_subnet_group.redshift_subnet_group", "aws_security_group.redshift_security_group", Resource "aws_internet_gateway" "redshift_vpc_gw" "] After this, We can easily access this from the internet. Now, We will define an internet gateway that we can attach to our VPC. variable.tfĬreate the new VPC for our redshift cluster. These values are defined in the terraform.tfvars. In this section, I have provided the profile and region name. As You can see below I have passed the profile name in the provider section. In the above command, terraform is the name of the credential profile After running this command, We will provide the Access key and secret key to set up the credentials. Here, I will create a profile for AWS credentials. As In resource.tf, I will store the resource, In the provider.tf, I will store the provider and terraform.tfvars, I will store the environment variables and In a variable.tf, I will store varibales Set the Provider – Here, I have created a few files for storing the terraform code.
0 Comments
Leave a Reply. |