Mapping AWS IAM Roles to Roles in OpenSearch - Demo

  Рет қаралды 11,971

Yann Stoneman

Yann Stoneman

Күн бұрын

Пікірлер: 49
@spartan3800
@spartan3800 Жыл бұрын
Thanks for creating this. Was very helpful in understanding how we can acquire access via AWS IAM roles. Kudos!
@YannStoneman
@YannStoneman Жыл бұрын
Glad it was helpful! Thanks so much for commenting!!
@muhammedsaidkaya7523
@muhammedsaidkaya7523 8 ай бұрын
Thx for the video. Did you figure out how to limit bulk operation for only movies index? Like you, I needed to give cluster permission but bulk operation can be done in another index. It didn't seem a secure way.
@snehza1994
@snehza1994 8 ай бұрын
Thanks for creating this, but unfortunately I am getting an error. User is not authorized to perform: iam: CreateUser on resource: opensearch-poc-user with an explicit deny in a service control policy. Could you kindly suggest what should I use over here? I have followed exactly same steps as mentioned in the video?
@janivimal
@janivimal 2 жыл бұрын
Yann, thank you for sharing this video, this was very helpful.
@YannStoneman
@YannStoneman 2 жыл бұрын
Thanks so much, Vimal! Glad it helped.
@Amapramaadhy
@Amapramaadhy 2 жыл бұрын
Thanks. How would one generate the opensearch role mappings programmatically (a la terraform)?
@YannStoneman
@YannStoneman 2 жыл бұрын
I haven't tried doing it programmatically yet myself. However, since the role mappings is internal to the OpenSearch API and not part of the AWS Control Plane / API, I would use some sort of post-deployment script in Terraform that calls the Security Plugin API, perhaps using a shell_script resource or something like that.
@Amapramaadhy
@Amapramaadhy 2 жыл бұрын
@@YannStoneman Thanks. Make sense. Not sure why but I mistakenly assumed OpenSearch is a aws service (much like s3 or dynamodb) which it clearly is not
@YannStoneman
@YannStoneman Жыл бұрын
@@Amapramaadhy Update: it does seem like the terraform provider has included deeper support for OpenSearch over time: registry.terraform.io/providers/opensearch-project/opensearch/latest/docs
@Amapramaadhy
@Amapramaadhy Жыл бұрын
@@YannStoneman Thanks for following up. Will definitely read up. Hopefully you will cover hardening managed opensearch clusters in future videos 😉
@shivakumarmarati7755
@shivakumarmarati7755 Жыл бұрын
Hey the video was really helpful Thanks, but I have a small query .Is there any way where we can map the backend role programmatically instead of doing it manually?
@andrewfigaroa7031
@andrewfigaroa7031 9 ай бұрын
This is really awesome!! I followed it and was happy I got the same error messages as you with missing indices bulk write permissions Lol...
@eternalsunshine313
@eternalsunshine313 Жыл бұрын
What credentials did you provide at 9:44? I'm putting in AccessKeyId and SecretAccessKey from the CLI assume role step, but it says invalid username or password on the login page.
@YannStoneman
@YannStoneman Жыл бұрын
Hi Eternal Sunshine - this is separate from the AWS credentials. It’ll be the master username and password you set when you create the domain. Something like un: admin, pw: admin opensearch.org/docs/1.0/dashboards/index/ docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-domain.html
@narcisoparra3693
@narcisoparra3693 Жыл бұрын
I had an Error: AuthorizationException message":"The security token included in the request is expired wit this line auth = AWS4Auth(refreshable_credentials = credentials, region = region, service = service), It supose tha the code will be renew the token when expired, can yougive some insight to solve this. Thansk for Sharing men
@harshthakkar8703
@harshthakkar8703 27 күн бұрын
Thank you, It was helpful.
@YannStoneman
@YannStoneman 26 күн бұрын
Awesome! Thanks for the comment 😊
@andylbh
@andylbh 2 жыл бұрын
Thank you, this is very helpful. Do I need an IAM User to assume the role, or is it possible to attach the IAM Role to an EC2 Instance and get my C# Application running on it to assume the Instance Profile Role? I'm having trouble with this currently.
@YannStoneman
@YannStoneman 2 жыл бұрын
Thanks, Andy! I'm so glad this is helpful. This should be possible using the IAM role of the instance profile. What's the problem you're having with it?
@andylbh
@andylbh 2 жыл бұрын
Thanks Yann for taking the time to reply! Glad to hear that it should be possible! I'm still getting an unauthorized 403 error even after mapping the Opensearch Role to the IAM Role. I guess the problem is on the Signing Request portion as the application was built using Elasticsearch's NEST and there isn't a sample based on .NET for the AWS4Auth. I'll try again later!
@YannStoneman
@YannStoneman 2 жыл бұрын
@@andylbh That makes sense. I haven't tried this with .NET but I was curious just now and found this: stackoverflow.com/a/37218694/9754418 -- let us know how it goes :)
@falc410
@falc410 Жыл бұрын
I use Cognito and followed the tutorial from the AWS documentation, but when I log in, I am still being assigned the default_role, altough it correctly assigns me to the correct master_user_role in the backend. Could you make an example on how to use Master User ARN instead of creating a local user?
@YannStoneman
@YannStoneman Жыл бұрын
Thanks for watching falc410. Could you please share the link to which part of the documentation you’re following and any additional details?
@ceciliafu7779
@ceciliafu7779 2 жыл бұрын
Thanks for the video. It’s very informative and helpful!
@YannStoneman
@YannStoneman 2 жыл бұрын
Thanks so much Cecilia!!
@sundaraaj
@sundaraaj Жыл бұрын
This is a very helpful video. Thanks for that. I am trying to create AWS DMS target endpoint for Opensearch and my endpoint creation fails -- The IAM Role arn:aws:iam::xxxxxxxx:role/custom-opensearch-role1 is not configured properly.AccessDenied
@YannStoneman
@YannStoneman Жыл бұрын
Thanks so much for commenting. I’m glad it helped! Please share how to recreate the error (but continue blocking out private details).
@tayluongquoc8993
@tayluongquoc8993 Жыл бұрын
Thanks, it helps me save so much time
@YannStoneman
@YannStoneman Жыл бұрын
Thanks so much for watching and commenting Tây!
@liftandshiftdev3222
@liftandshiftdev3222 Жыл бұрын
what username and password that you used to log in the dashboard?
@YannStoneman
@YannStoneman Жыл бұрын
Quickest way to access OpenSearch dashboard
@zacbackas
@zacbackas 2 жыл бұрын
You mention the internal user DB as being not suitable for production… so what should we do? From what I can tell it’s not possible to use our regular IAM users (AWS console login) to log into open search dashboard? Is a cognito managed user pool really “better” than just making opensearch users? As far as I can tell it just changes where you manage the users list since either way a team member needs to have a separate opensearch user/pass from their IAM account
@YannStoneman
@YannStoneman 2 жыл бұрын
I personally would recommend for a production scenario using SAML authentication so that you can manage your users in one place, “such as Okta, Keycloak, Active Directory Federation Services (ADFS), and Auth0.” See: docs.aws.amazon.com/opensearch-service/latest/developerguide/saml.html
@zacbackas
@zacbackas 2 жыл бұрын
@@YannStoneman I work on a small development team so only 2-3 of us really need access to the Opensearch instance, but we’re owned by a massive corporation that would make integrating with the IT team that runs the active directory a huge headache…. So is it actually unsafe to just have a couple internal users to log into or just not “ideal”? I’d love to have SSO set up too but it doesn’t quite seem in the cards, I just want to make sure I’m still creating a secure solution for accessing Opensearch.
@YannStoneman
@YannStoneman 2 жыл бұрын
@@zacbackas Nothing specific to OpenSearch in my thoughts here: it's just that with SSO, you have a single source of truth for users (which matters less with only 3 people), and you can have MFA as part of the SSO authentication process, which I guess could matter less if the dashboard is not publicly accessible and only accessible via an MFA-protected VPN or something like that. Nothing about OpenSearch is making me say this -- just the general SSO + MFA thinking.
@zacbackas
@zacbackas 2 жыл бұрын
@@YannStoneman ok thanks for the insight! Sounds like we’re safe enough for now with the internal user DB, but I’ll certainly be starting the conversation about SSO
@yc1HGv
@yc1HGv Жыл бұрын
Thanks for the video!
@suhanichacha3022
@suhanichacha3022 2 жыл бұрын
Thank you.. Was a great video.. Really helped me out.
@YannStoneman
@YannStoneman 2 жыл бұрын
Thanks Suhani - I’m so glad it helped!
@anttikoponen9052
@anttikoponen9052 11 ай бұрын
Thank you, very helpful!
@YannStoneman
@YannStoneman 11 ай бұрын
Glad it was helpful! Thanks for commenting!
@MyProfile12345
@MyProfile12345 2 жыл бұрын
Thank you for the AWESOME video man ! I really appreciate it.. I am trying to setup this using a cross account user (from another AWS account) the setup should be pretty similar I suppose.
@YannStoneman
@YannStoneman 2 жыл бұрын
Yes, this should work the same cross-account. Glad it helped!
@vikx02
@vikx02 6 ай бұрын
Nice video. But now I see the value in elasticsearch cloud.
@YannStoneman
@YannStoneman 6 ай бұрын
😂
@SusChuckKeys
@SusChuckKeys 2 жыл бұрын
super helpful
@bashkimbajrami6758
@bashkimbajrami6758 2 жыл бұрын
You are amazing thank you very much buddy
@YannStoneman
@YannStoneman 2 жыл бұрын
Thanks so much Bakshim!!
AWS Solution Architect | IAM Assume Role - Part 7
17:15
Rahul Wagh
Рет қаралды 4,6 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
AWS OpenSearch Quick Start Guide from scratch on free tier with Dashboards!
11:03
Fine-grained Access Control (FGAC)
18:01
Amazon OpenSearch Service
Рет қаралды 286
Setting Up a Amazon Opensearch (ElasticSearch) Cluster with Free Tier
25:46
AWS Identity and Access Management (IAM) Basics | AWS Training For Beginners
19:13
Tiny Technical Tutorials
Рет қаралды 104 М.
AWS OpenSearch Python Client Remote Cluster Authentication
6:58
Vincent Stevenson
Рет қаралды 6 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН