This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_s3_bucket" "main_bucket" { | |
bucket = "main-bucket-00721" | |
tags = { | |
"Name" = "Main Bucket" | |
"Environment" = "Test" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module "s3_main_bucket" { | |
source = "./modules/main-bucket" | |
} | |
module "s3_dependent_bucket" { | |
source = "./modules/dependent-bucket" | |
depends_on = [ | |
module.s3_main_bucket | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE Laptops( | |
LaptopID INT IDENTITY(1,1) PRIMARY KEY, | |
LaptopName VARCHAR(100), | |
LaptopBrand VARCHAR(100), | |
ReleasedYear INT, | |
DeviceType VARCHAR(100), | |
Price DECIMAL(9,2) | |
) | |
GO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters: | |
pDbName: | |
Type: String | |
pDbUser: | |
Type: String | |
pDbPass: | |
Type: String | |
Description: "It should be less than 8 characters" | |
Resources: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from flask_restful import Api, Resource, reqparse | |
import pandas as pd | |
app = Flask(__name__) | |
api = Api(app) | |
class Users(Resource): | |
def get(self): | |
data = pd.read_csv('users.csv') |