Error: invalid value for name (must only contain alphanumeric characters, hyphens, underscores, commas, periods, @ symbols, plus and equals signs)
Solutions : please check data type in associtaed variable block
Error: invalid value for name (must only contain alphanumeric characters, hyphens, underscores, commas, periods, @ symbols, plus and equals signs)
Solutions : please check data type in associtaed variable block
main.tf
provider "aws" {
region = "us-east-1"
}
resource "aws_security_group" "allow_ssh" {
name = "allow_ssh_oracle_mssql_port"
description = "allow_ssh_oracle_mssql_port "
ingress {
description = "ssh-port"
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = [var.my_ip]
}
ingress {
description = "Oracle-port "
from_port = 1521
to_port = 1521
protocol = "tcp"
cidr_blocks = [var.my_ip]
}
ingress {
description = "MSSQL-Port"
from_port = 1433
to_port = 1433
protocol = "tcp"
cidr_blocks = [var.my_ip]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
#ipv6_cidr_blocks = [var.my_ip]
}
tags = {
Name = "allow_imp_port_Oracle_MSSQL_ssh"
}
}
variables.tf
variable "my_ip" {
default = "34.207.6.67/32"
}
Terraform commands
terraform init
terraform plan
terraform apply
test_output.tf
provider "aws" {
region = "us-east-1"
}
resource "aws_eip" "eip1" {
domain = "vpc"
}
output "My_Public_ip" {
value = aws_eip.eip1.public_ip
}
Terraform commands
terraform init
terraform plan
terraform apply
terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
}
}
}
# Configure the GitHub Provider
provider "github" {
token = "Put-Github-Token"
}
resource "github_repository" "MyFirstRepo" {
name = "terraform-module1"
description = "This Module contain code for Start"
visibility = "public"
}
Terraform commands
terraform init
terraform plan
terraform apply
MyFirst-EC2.tf
####Define credential to connect with providers
provider "aws" {
region = "us-east-1"
access_key = "Put-Your-Access_Key"
secret_key = "Put-Your-Secret_Key"
}
#### Create Resource i.e. EC2
resource "aws_instance" "MyEc2" {
ami = "ami-05548f9cecf47b442"
instance_type = "t2.micro"
}
Edition and licensing => License included (SE2) or BYOL (SE2/EE)
Multitenant PDB in CDB (licence & Maint cost reduction) => 1 PDB
No of Database => 1 DB per RDS instance
Applications require access to underlying OS => N/A
Applications require access to underlying DB Env => N/A
sysdba privilege access => N/A
Huge Pages (better Performance) => N/A
Local Undo => N/A
Data Guard Max Availability => with Multi AZ (no access on secondary)
RDS database Patching => AWS Managed
Create a Multi-AZ deployment => Yes
Change CPU cores and threads per core on DB instance class => Yes
Turn on storage autoscaling => Yes
Automatic minor version upgrade => Yes
Kerberos authentication. => Yes
Performance Insights => Yes
TDE Encryption => Yes
Billing can be stopped => Yes
Scaling AWS => Yes
High availability => AWS Managed
Database backups => AWS Managed
Database software install => AWS Managed
OS patching => AWS Managed
OS installation => AWS Managed
Storage Limit => 64TB
Pre-communication (No-Downtime)
Pre-Migration Pahse (No-Downtime)
On Source Database
Prepare Target envirnoment (No-Downtime)
Migration pahse (Downtime start)
Rollback Phase
Business & Work Keyword Template Style / Use Case Presentation Business decks, pitches, school slides Report Annual reports, whitepapers...