Follow popular topics

see all

Top contributors

see all
RankNameTotal points
1
1,653
2
1,444
3
1,327
4
1,170
5
1,140

Recent questions

see all
1/18
  • Hi all, I am trying to use boto3 to do some KMS operation. I keeping getting an error that my security token is invalid. I've went through various posts I could find and was not able to find any resolution. Things I have checked so far * I am not using any special region. Everything is just in standard us-east-1 nothing fancy. * I have created a user that has AdministratorAccess and created security access credentials for this user * Have tried putting these into credentials file + supplying through client() constructor My code snippet ``` import boto3 aws_access_key_id = "XXX" aws_secret_access_key = "XXX" client = boto3.client('sts', aws_access_key_id=aws_access_key_id, aws_secret_access_key=aws_secret_access_key, ) resp = client.get_session_token() key = resp['Credentials']['AccessKeyId'] secret = resp['Credentials']['SecretAccessKey'] session_token = resp['Credentials']['SessionToken'] client = boto3.client( 'kms', aws_access_key_id="\"" + key + "\"", aws_secret_access_key="\"" + secret + "\"", aws_session_token="\"" + session_token + "\"" ) response = client.generate_data_key_pair_without_plaintext( KeyId='XXX', KeyPairSpec='ECC_NIST_P384', ) ``` My code fails on the last line... **Traceback (most recent call last): File "C:\pathToTestScript.py", line 28, in <module> response = client.generate_data_key_pair_without_plaintext( File "C:\Users\benarnao\AppData\Roaming\Python\Python310\site-packages\botocore\client.py", line 530, in _api_call return self._make_api_call(operation_name, kwargs) File "C:\Users\benarnao\AppData\Roaming\Python\Python310\site-packages\botocore\client.py", line 961, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the GenerateDataKeyPairWithoutPlaintext operation: The security token included in the request is invalid.** I am able to get the session token from STS, and notice this returns a temporary key and secret as well. I have tried the new set of credentials as well the existing credentials + security token with no luck. For some reason the key and secret require surrounding quotes when supplying through client() constructor, I have tried this with and without for the session token parameter. Any ideas?
    0
    answers
    0
    votes
    1
    views
    AWS
    asked 29 minutes ago
  • I get the following error when I add 3 lines to my policy `Value of property PolicyDocument must be an object ` (Lines with #JustAdd) If I remove those 3 lines it works great whats wrong ? ``` Policies: - PolicyName: !Sub 'X-${AWS::Region}' PolicyDocument: - Effect: Allow Action: 'ssm:GetParametersByPath' Resource: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/X' - Effect: Allow Action: 'ssm:GetParameters' Resource: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/X/*' - Effect: Allow Action: 's3:*' Resource: '*' - Effect: Allow Action: - secretsmanager:GetSecretValue Resource: - !Sub 'arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:C*' - Effect: Allow Action: - 'ec2:DescribeNetworkInterfaces' - 'ec2:CreateNetworkInterface' - 'ec2:DeleteNetworkInterface' - 'ec2:DescribeInstances' - 'ec2:AttachNetworkInterface' Resource: '*' - Effect: Allow Action: 'kms:Decrypt' Resource: '*' - Effect: Allow #JustAdded Action: sqs:* #JustAdded Resource: 'arn:aws:sqs:us-east-1:000000000000:Q.fifo' #JustAdded RoleName: !Sub 'X-${AWS::Region}' ```
    0
    answers
    0
    votes
    3
    views
    asked an hour ago
  • We are using a plugin called: GPT AI Power: Complete AI Pack. The plugin require us to set up a cor job. we did follow their instructions on https://gptaipower.com/how-to-add-cron-job/ Result, nothing is working on lightsale. the instructions work on a lightsale server with cpanel but not working on lightsale wordpress without cpanel. the plugin is saying: Important You must configure a Cron Job on your hosting/server. If this is not done, the Bulk Editor feature will not be available for use. It appears that you have not activated Cron Job on your server, which means you will not be able to use the Bulk Editor feature. If you have already activated Cron Job, please allow a few minutes to pass before refreshing the page.
    0
    answers
    0
    votes
    2
    views
    asked 2 hours ago
  • I have lookup table that contains databasename and tablename with indicators. I want to loop through each table first to check for duplicates and if found will have to do some clean up. Can someone help me with the sP? CREATE OR REPLACE PROCEDURE record_example() LANGUAGE plpgsql AS $$ DECLARE rec RECORD; BEGIN FOR rec IN select db_nm,tbl_nm from Tbl_Lookup where dupcheck_ind <> 'Y' LOOP DML1; DML2; DML3; END LOOP; END; $$; Thanks KN
    0
    answers
    0
    votes
    2
    views
    KN
    asked 2 hours ago
  • I checked the rule itself and the event scheduler. Just as a test, I had it running every five minutes. However, when I checked on the lambda's cloudwatch log group, there was nothing. Rule state is enabled. The trigger is there in the lambda. In the cloudwatch metrics, there's actually data, but nothing is logged. It also reports a success so I don't think it's a permissions issue. Also, when I tried to add the rule's ARN to the Configuration>Permissions tab, it reports an error because the ARN contains a forward slash and it allows backward slashes. I'm using the code from this guide: https://aws.amazon.com/blogs/security/how-to-monitor-expirations-of-imported-certificates-in-aws-certificate-manager-acm/ so I don't think it's the lambda itself. I also just put a print statement in the lambda_handler just to see if anything outputs. Nothing does.
    0
    answers
    0
    votes
    2
    views
    asked 2 hours ago
  • Hello, ADR does not seem to be working in AWS IoT Core for US915 at least. It always default to DR3 and never change to adapt for better or worse signal. How can I make sure automatic ADR setting is setup ? Where can I see the configs related to ADR ? Currently we have to manually turn off ADR and set DR=0 for devices with bad signals and it's very inconvenient compared to the automatic ADR we had with other providers previously. Thank you,
    1
    answers
    0
    votes
    6
    views
    asked 3 hours ago
  • I have a S3 bucket that I have been using to serve up static web pages for a couple of years. I finally decided to get a domain to make it easier to share the location. Following the documentation I tried to create a Simple Record: Record Type: A Value/Route traffic to: Alias to website S3 endpoint Region: US-East (Ohio) [us-east-2] It should then show me available S3 endpoints, but it says "No resources found". The static site is https://kghhome.s3.us-east-2.amazonaws.com/index.html What I have tried so far: - Entering variations of the S3 address in the search bar. - Logging off and back in again. - Waiting 48 hours in case the database mapping the endpoint and user was slow to update. - Logging off and back in a second time. The next thing that I can think of to try is to rebuild the static website in another bucket, but I'm hoping that there is something a little less obnoxious to try first. Thanks, Kai
    0
    answers
    0
    votes
    1
    views
    kaigh
    asked 3 hours ago
  • When I log in to my Plesk account and try to install the Node.js extension, I get an error saying that I don't have permissions for this and that I should contact my hosting provider, in this case AWS. Mistake: You do not have permission to install extensions. Please contact your hosting provider.
    0
    answers
    0
    votes
    3
    views
    asked 3 hours ago
  • Hi, we configured SSO for QuickSight and followed the instructions in this blog: https://aws.amazon.com/de/blogs/big-data/enable-federation-to-amazon-quicksight-with-automatic-provisioning-of-users-between-aws-iam-identity-center-and-microsoft-azure-ad/ However, in this article every user will be an admin, because https://aws.amazon.com/SAML/Attributes/Role will always be mapped to arn:aws:iam:: <YourAWSAccount ID>:role/QuickSight-Admin-Role - the role does not depend on the user group. ![Enter image description here](/media/postImages/original/IM8xZxakPnSvCrXgsmqDns_A) As described in the article, we created 3 IAM roles and Azure AD groups (Admin, Author, Reader). How can we assign IAM roles to the AD group? We already tried using claims in Azure AD, as described here: https://aws.amazon.com/de/blogs/big-data/enabling-amazon-quicksight-federation-with-azure-ad/
    0
    answers
    0
    votes
    3
    views
    fabian
    asked 3 hours ago
  • After all verification (easy DKIM option) I try send email. Via console it is work perfrect - DKIM record in test email has correct domain - my own. But when I try to do via API - it is contains "amazonses.com" (I see email in GMAIL via Show Original) ``` await _emailClient.SendEmailAsync(new() { FromEmailAddress = "noreply@mydomain.com", Destination = new() { ToAddresses = new() { CreateAddress(email.ToAddress, email.ToAlias) } }, Content = new() { Simple = new() { Subject = new() { Data = email.Name }, Body = new() { Text = CreateContent(email.Text) } } } }, cancellationToken); ``` Should I use some extra property or missed some magic method in API?
    0
    answers
    0
    votes
    2
    views
    Mike
    asked 4 hours ago
  • So I have created a EKS Cluster with 1 EKS managed node group. I also created a in-region Self-managed node group. I was trying to install some workloads into the cluster using Helm, by simply invoking `helm install` method. The first chart is installed into self-managed node group and everything works fine. But when I tried to install the second helm chart, it went to managed node group. However, the second helm chart has some dependency on the first helm chart and right now second helm chart is stuck trying to find the first helm chart. But it is in the other node group. I am wondering what kind of Security Group rule changes I need to make so that I could make this cross node group communication work ? Currently these two node groups are within the same VPC and Subnet Thanks
    0
    answers
    0
    votes
    6
    views
    asked 4 hours ago
  • I have a study that requires participants to take an initial screener survey and baseline survey. I then need participants to come back 5 to10 days later to complete a follow up session. Is there a way to do this on only mTurk or would utilizing CloudResearch be necessary as well?
    0
    answers
    0
    votes
    1
    views
    asked 4 hours ago
  • I have 2 ElasticBeanstalk environments, and in only 1 of them, when attempting to view the "Configuration" tab it fails with the error ``` TypeError: Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. (anonymous function) — main.js:1:1758539 (anonymous function) — main.js:1:1768768 pt — vendors.js:9:5095 (anonymous function) — vendors.js:9:52188 l — vendors.js:9:69145 ai — vendors.js:9:40615 (anonymous function) — vendors.js:9:26011 ... ``` It seems like a bug as I haven't made any changes. The "Configuration" tab works correctly for the other environment. I've tried multiple browsers and waiting a few weeks in case it got fixed by them internally. Any ideas?
    0
    answers
    0
    votes
    3
    views
    asked 4 hours ago
  • I was reading through these docs and noticed that the steps to request a security token requires the client to send its private key to credential provider service. ``` curl --cert your certificate --key your device certificate key pair -H "x-amzn-iot-thingname: your thing name" --cacert AmazonRootCA1.pem https://your endpoint /role-aliases/your role alias/credentials ``` This is mentioned in these docs: https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html https://aws.amazon.com/blogs/security/how-to-eliminate-the-need-for-hardcoded-aws-credentials-in-devices-by-using-the-aws-iot-credentials-provider/ Looking at it superficially, I would think this is a security flaw and would defeat the purpose of using asymmetric keys in the first place. Any help to help me understand what is going on is greatly appreciated.
    1
    answers
    0
    votes
    10
    views
    asked 4 hours ago
  • How can I download S3 bucket data shared by somoene on my S3 bucket? I have been given access key id and secret access key by the person who has shared the bucket.
    1
    answers
    0
    votes
    9
    views
    asked 5 hours ago
  • I am using an MDR service called Adlumin that consumes CloudWatch log streams created by my Org CloudTrail log. Part of that requirement is that my Log files use SSE-KMS encryption, which is not the case by default for Control Tower. I would like to enable it, but while my management account owns the CloudTrail, my logging account owns the S3 bucket. So when I attempt to update that setting in my CloudTrail it let's me know that I "don't have adequate permissions in S3 to perform this operation." My Questions: Will updating this setting for my S3 bucket be blocked by any Control Tower Guardrails? What kind of policies would I need to establish with my bucket (and IAM?) to give my management account access to update this configuration for my logging accounts S3 bucket?
    0
    answers
    0
    votes
    4
    views
    asked 5 hours ago
  • I have hosted two apps (2 domain). The primary app (3000) and domain works fine but the seondary domain is not pointing to port 3001 as configured in its vhost file. I have created seperate vhost file for both following this documentation: https://docs.bitnami.com/aws/infrastructure/nodejs/get-started/get-started/ but still secondary domain does not points to 3001. If I access the secondary app through <serverip>:3001 . I can see the app but the secondary domain does not points to 3001 instead it points to 3000. What am I doing wrong here? Is there any documentation available for this setup?
    0
    answers
    0
    votes
    3
    views
    Ham44
    asked 6 hours ago
  • Got this email and have no idea what this is wanting as anything i try and do I get an error, saying that every emails i have is associated with an AWS account. Hello, You are receiving this message because we have identified that you are currently using the same email address for this AWS account (as listed in the Subject line) and for additional AWS account(s), which are associated with your Amazon.com account. We strongly recommend that you update the root user email address [1] for this AWS account as soon as possible to separate access to your additional AWS account(s) linked to your Amazon.com account. If you do not take any action by April 10, 2023, we will require you to update your email before accessing this AWS account when you sign in next to your account. After you have changed the root user email address for this account, you will be able to use it to access your account. At that point, we can finish separating your additional AWS account(s) from your Amazon.com account.
    1
    answers
    0
    votes
    6
    views
    asked 6 hours ago

Recent Knowledge Center content

see all
1/18

Recent articles

see all
1/18