https://pulumi.com logo
#python
Title
# python
s

stocky-xylophone-20575

04/03/2022, 7:50 PM
Hi all, need help in importing a rds parameter group and modifying it, currently i am trying to write a inline pulumi program, can you please help me in giving any pointers i am doing it like this
Copy code
parameter_group = aws.rds.ParameterGroup(parameter_group_name,
                                             family=rds_family,
                                             opts=ResourceOptions(import_=parameter_group_name))
but coming out to
inputs to import do not match the existing resource
even though parameter group name is same i also tried to user
aws.rds.ParameterGroup.get()
but it is asking for id which is not present in case of parametergroups , we only have name for a parameter group
hi team, little pointers would be really helpful, more than willing to raise PR if required 🙂
g

great-queen-39697

04/06/2022, 8:42 PM
The value you need to pass to
import_
comes from AWS rather than being the value you're passing as
parameter_group_name
. The format is written out here, so you'd be passing something like
aws:rds/parameterGroup:Parametergroup rds_pg <name>
s

stocky-xylophone-20575

04/23/2022, 7:22 AM
hm so parameter group name is coming from aws itself, i am fetching it from aws rds properties
g

great-queen-39697

04/29/2022, 12:36 AM
can you show me how you're fetching it? I think you need something like
f"aws:rds/parameterGroup:Parametergroup rds_pg {parameter_group_name}"
in that case
4 Views