Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Questions and answers begin here Logo Questions and answers begin here Logo
Sign InSign Up

Questions and answers begin here

Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us

amazon-web-services

Home/amazon-web-services

Questions and answers begin here Latest Questions

Asked: 4 years agoIn: Programming

AWS create role has prohibited field.

kanekibouyer Teacher

I am a software developer who is currently working on an AWS project. While trying to create a new role, I keep facing the same problem. Whenever I try to create a new IAM role with a certain policy document, ...Read more

I am a software developer who is currently working on an AWS project. While trying to create a new role, I keep facing the same problem. Whenever I try to create a new IAM role with a certain policy document, AWS CloudFormation throws an error message stating that the ‘createRole’ action has a prohibited field.
Here is the code I am using to create the role:

Resources:
myRole:
Type: 'AWS::IAM::Role'
Properties:
RoleName: 'myRole'
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Principal:
Service:
- ec2.amazonaws.com
Action:
- 'sts:AssumeRole'
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AmazonS3FullAccess
- arn:aws:iam::aws:policy/AmazonEC2FullAccess
Policies:
- PolicyName: 'myPolicy'
PolicyDocument:
Statement:
- Effect: Allow
Action: ['ec2:StartInstances']
Resource: ['arn:aws:ec2:*:*:instance/*']

What could be causing this error message? I have tried various ways to change the policy document, but I still get the same error. Is there something wrong with my IAM role creation syntax? Any help would be much appreciated.

Read less
amazon-web-servicesAWSIAMpoliciesprohibited fieldroles
  1. Dive into Turkish History
    Added an answer about 7 days ago
    Your answer is awaiting moderation.

    Explore the significant historical events that shaped Turkey on our website. It's a journey into the past.

    Explore the significant historical events that shaped Turkey on our website. It’s a journey into the past.

    See less
    • 0
    • Share
      Share
      • Share onFacebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  • 170
  • 2 Answers
  • 953 Views
Asked: 5 years agoIn: Programming

AWS Secrets Manager can’t find the specified secret

ramtin.monfared Teacher

I am having trouble getting AWS Secrets Manager to work with my server-side application. I’m currently working on a web-based project that requires me to store sensitive data in AWS Secrets Manager. However, when I try to access the specified ...Read more

I am having trouble getting AWS Secrets Manager to work with my server-side application. I’m currently working on a web-based project that requires me to store sensitive data in AWS Secrets Manager. However, when I try to access the specified secret, I get an error message saying that the secret could not be found.
Here’s the code that I’m using to retrieve the secrets:
const AWS = require('aws-sdk');
const client = new AWS.SecretsManager({
region: 'us-east-1'
});
let secret;
client.getSecretValue({ SecretId: 'my-secret' }, (err, data) => {
if (err) {
console.log('Error retrieving secret:', err);
} else {
secret = JSON.parse(data.SecretString);
}
});

I’ve double-checked that the IAM role assigned to my EC2 instance has the necessary permissions to read the secrets, and the Secret Manager service is properly configured. I’m not sure what else could be causing the error at this point. Does anyone have any suggestions on how I can troubleshoot this issue and get the secrets working with my application? Any help would be greatly appreciated.

Read less
access-controlamazon-web-servicesaws-secrets-managersecrets
  1. Dive into Turkish History
    Added an answer about 7 days ago
    Your answer is awaiting moderation.

    Explore the significant historical events that shaped Turkey on our website. It's a journey into the past.

    Explore the significant historical events that shaped Turkey on our website. It’s a journey into the past.

    See less
    • 0
    • Share
      Share
      • Share onFacebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  • 438
  • 2 Answers
  • 758 Views

Sidebar

Ask A Question

Stats

  • Questions 117
  • Answers 403
  • Best Answers 0
  • Users 5k
  • Popular
  • Answers
  • crisroxz

    Pine Script error: script could not be translated from `null`

    • 1 Answer
  • leguizamon_ailen

    1.7 Lab: Adjust values in a list by normalizing [Python]

    • 1 Answer
  • fabian_mgram

    Python String Class like StringBuilder in C#

    • 3 Answers
  • utxpiv_ added an answer The error "libpng warning iccp known incorrect sRGB profile" usually… March 31, 2023 at 12:34 pm
  • imamreshmahi added an answer One possible way to avoid the warning 'libpng warning iccp… March 18, 2023 at 7:34 pm
  • crazytibet added an answer When dealing with the Libpng warning ‘iCCP: known incorrect sRGB… March 15, 2023 at 3:40 pm

Top Members

bluzbear

bluzbear

  • 0 Questions
  • 101 Points
Pundit
krystianpanczak

krystianpanczak

  • 0 Questions
  • 101 Points
Pundit
idavidt5

idavidt5

  • 0 Questions
  • 101 Points
Pundit

Trending Tags

attributeerror c# command-line configuration debugging error error handling ImportError java javascript json module Node.js pandas programming python swift testing troubleshooting windows
  • Meet The Team
  • Blog
  • About Us
  • Contact Us

© 2017 - All Rights Reserved. Made with ❤️ in RO