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
import boto3 | |
s3 = boto3.client("s3") | |
response = s3.put_bucket_accelerate_configuration( | |
Bucket="annageller", AccelerateConfiguration={"Status": "Enabled"}, | |
) |
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
import boto3 | |
from botocore.config import Config | |
ta_config = Config(s3={"use_accelerate_endpoint": True}) | |
s3 = boto3.client("s3", config=ta_config) |
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 datetime import date | |
import os | |
from pandas_datareader.data import DataReader | |
ticker_symbol = "GOOGL" | |
os.environ["ALPHAVANTAGE_API_KEY"] = "YOUR_API_KEY" | |
df = DataReader( | |
name=ticker_symbol, |
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
import awswrangler as wr | |
from datetime import date | |
import logging | |
import pandas as pd | |
from pandas_datareader.data import DataReader | |
logging.basicConfig( | |
format="%(asctime)s - [%(levelname)s] - %(name)s: %(message)s", level="INFO" | |
) |
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
import awswrangler as wr | |
from datetime import date | |
import logging | |
import pandas as pd | |
from pandas_datareader.data import DataReader | |
class StockDataReader: | |
def __init__( | |
self, |
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
import awswrangler as wr | |
from datetime import date | |
import logging | |
import pandas as pd | |
from pandas_datareader.data import DataReader | |
class StockDataReader: | |
def __init__( | |
self, |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"athena:*", | |
"glue:*", | |
"s3:*Object*", | |
"s3:GetBucketLocation", |
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
{ | |
"family": "ecsDemo", | |
"requiresCompatibilities": ["FARGATE"], | |
"networkMode": "awsvpc", | |
"cpu": "256", | |
"memory": "512", | |
"taskRoleArn": "arn:aws:iam::123456:role/ecs-athena-glue-s3-role", | |
"executionRoleArn": "arn:aws:iam::123456:role/ecs-task-execution-role", | |
"containerDefinitions": [ | |
{ |
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
{ | |
"family": "ecsDemo", | |
"requiresCompatibilities": ["FARGATE"], | |
"networkMode": "awsvpc", | |
"cpu": "256", | |
"memory": "512", | |
"taskRoleArn": "arn:aws:iam::123456:role/ecs-athena-glue-s3-role", | |
"executionRoleArn": "arn:aws:iam::123456:role/ecs-task-execution-role", | |
"containerDefinitions": [ | |
{ |
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
import awswrangler as wr | |
from datetime import date | |
import logging | |
import pandas as pd | |
from pandas_datareader.data import DataReader | |
class StockDataReader: | |
def __init__( | |
self, |