Terraform split the monolith
I currently have a project that has grown quite a bit and I wonder if it is possible to break it down into small elements without the need to destroy everything that has been deployed in the cloud, I have…
I currently have a project that has grown quite a bit and I wonder if it is possible to break it down into small elements without the need to destroy everything that has been deployed in the cloud, I have…
I have some existing code that uses boto3 (python) DynamoDB Table objects to query the database: import boto3 resource = boto3.resource("dynamodb") table = resource.table("my_table") # Do stuff here We now want to run the tests for this code using DynamoDB…
Everytime an EC2 instance gets created, I want to run a script on that instance. I understand this could be done using the user_data parameter but some of these instances get created manually so people may forget to fill in…
How can I run a cron job at 2am UTC at every Sunday and Wednesday on AWS. 0 2 * * SUN,WED * The time is fine, just the days seem to be the wrong format (getting Parameter ScheduleExpression is…
I have been going round and round trying to get this working. I want to be able to define the CorsConfiguration in the HttpApi resource definition but everything I try simply doesn't work. I can only get CORS working if…
In linux to create nested folders, irrespective of the intermediate folders exist or not can be done using the below command. mkdir -p /home/user/some_non_existing_folder1/some_non_existing_folder2/somefolder Similar to this i want to create a nested folder structure in S3 and place my…
How do I extract/view the csv files created by this block of code? What the code does is pull data from a table and extract the json elements. I am running this code on Jupyter notebook but I can't figure…
I have an AWS Terraform repo where i have an architecture for an AWS solution. Over time people have gone onto the management console and made changes to the architecture without changing the terraform code causing a drift between the…
sorry for the basic question, new to terraform. I am running through some sample examples in terraform where lots of example show declaration of local variable, i.e. locals, by name it sounds like the scope of it, is local to…
lambdaFunction = _lambda.DockerImageFunction(self, f'{client_id}-prefect-lambda-handler', code=_lambda.DockerImageCode.from_image_asset( directory="cumulus_devops_cdk/prefect-lambda-handler" ), ) I am trying to create a lambda function from a docker image in CDK as shown above. The problem is that my company's CDK runs in a docker image and thus has…